update shell.nix and use poetry2nix in default.nix

This commit is contained in:
Istvan Ruzman
2020-08-30 14:52:25 +02:00
parent a5703b3d26
commit f7ba11a1cd
2 changed files with 26 additions and 28 deletions

View File

@@ -1,15 +1,7 @@
{pkgs, python, ...}:
python.pkgs.buildPythonPackage rec {
pname = "pyrad";
version = "1.0-alpha";
buildInputs = with python.pkgs; [ ];
checkInputs = with python.pkgs; [
black
pytest
# pytest-cov
];
}
{ pkgs ? import <nixpkgs> {} }:
let
app = pkgs.poetry2nix.mkPoetryApplication {
projectDir = ./.;
};
in app.dependencyEnv