Poetry init, move shell deps to nativeBuildInputs,

nix-and-poetry
Stan Drozd 2021-02-28 00:26:11 +01:00
parent 47eda90387
commit 5aa9f56d3e
No known key found for this signature in database
GPG Key ID: E96EA51A5D7F84E7
5 changed files with 27 additions and 3 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ postgres-hstore/
.ropeproject/
docker-compose.override.yml
build_static
*.egg-info

View File

@ -1,5 +1,6 @@
{sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs {} }:
{ sources ? import ./nix/sources.nix, pkgs ? import sources.nixpkgs {} }:
with pkgs;
[
python3
python38
postgresql
]

8
poetry.lock generated Normal file
View File

@ -0,0 +1,8 @@
package = []
[metadata]
content-hash = "fafb334cb038533f851c23d0b63254223abf72ce4f02987e7064b0c95566699a"
lock-version = "1.0"
python-versions = "^3.8"
[metadata.files]

14
pyproject.toml Normal file
View File

@ -0,0 +1,14 @@
[tool.poetry]
name = "spejstore"
version = "0.1.0"
description = "Your mom's basement was never this organized"
authors = ["Warszawski Hackerspace <kontakt@hackerspace.pl>"]
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.dev-dependencies]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

View File

@ -4,5 +4,5 @@ let
common-deps = import ./common-deps.nix { inherit sources; };
in
pkgs.mkShell {
buildInputs = with pkgs; [poetry] ++ common-deps;
nativeBuildInputs = with pkgs; [poetry] ++ common-deps;
}