update shell.nix and use poetry2nix in default.nix
This commit is contained in:
20
default.nix
20
default.nix
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user