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, ...}:
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
|
|
||||||
python.pkgs.buildPythonPackage rec {
|
|
||||||
pname = "pyrad";
|
|
||||||
version = "1.0-alpha";
|
|
||||||
|
|
||||||
buildInputs = with python.pkgs; [ ];
|
|
||||||
|
|
||||||
checkInputs = with python.pkgs; [
|
|
||||||
black
|
|
||||||
pytest
|
|
||||||
# pytest-cov
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
let
|
||||||
|
app = pkgs.poetry2nix.mkPoetryApplication {
|
||||||
|
projectDir = ./.;
|
||||||
|
};
|
||||||
|
in app.dependencyEnv
|
||||||
|
|||||||
34
shell.nix
34
shell.nix
@@ -3,20 +3,26 @@ in pkgs.mkShell {
|
|||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
git
|
git
|
||||||
nixfmt
|
nixfmt
|
||||||
pkgs.python37
|
gnumake
|
||||||
pkgs.python38
|
python3
|
||||||
pkgs.python3
|
python37
|
||||||
pkgs.python3Packages.coveralls
|
python37Packages.virtualenv
|
||||||
pkgs.python3Packages.black
|
python38
|
||||||
pkgs.python3Packages.poetry
|
python38Packages.virtualenv
|
||||||
pkgs.python3Packages.pytest
|
python39
|
||||||
pkgs.python3Packages.pytest-black
|
python39Packages.virtualenv
|
||||||
pkgs.python3Packages.pytestcov
|
python3Packages.black
|
||||||
pkgs.python3Packages.pytest-flake8
|
python3Packages.coveralls
|
||||||
pkgs.python3Packages.pytest-isort
|
python3Packages.poetry
|
||||||
pkgs.python3Packages.pytest-mypy
|
python3Packages.pytest
|
||||||
pkgs.python3Packages.pytest-pylint
|
python3Packages.pytest-black
|
||||||
pkgs.python3Packages.tox
|
python3Packages.pytestcov
|
||||||
|
python3Packages.pytest-flake8
|
||||||
|
python3Packages.pytest-isort
|
||||||
|
python3Packages.pytest-mypy
|
||||||
|
python3Packages.pytest-pylint
|
||||||
|
python3Packages.sphinx
|
||||||
|
python3Packages.tox
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user