enable pytest

This commit is contained in:
DavHau 2020-10-12 13:31:46 +07:00
parent a2b1ff0271
commit b122d76307
3 changed files with 3 additions and 10 deletions

View file

@ -400,7 +400,8 @@ rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
src = ./.; src = ./.;
propagatedBuildInputs = python_deps; propagatedBuildInputs = python_deps;
doCheck = false; checkInputs = [ python.pkgs.pytest ];
checkPhase = "pytest";
}; };
# the main functions # the main functions

View file

@ -16,14 +16,6 @@ rec {
}; };
doCheck = false; doCheck = false;
}; };
toml = python.pkgs.buildPythonPackage {
name = "toml-0.10.1";
src = fetchurl {
url = "https://files.pythonhosted.org/packages/da/24/84d5c108e818ca294efe7c1ce237b42118643ce58a14d2462b3b2e3800d5/toml-0.10.1.tar.gz";
sha256 = "926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f";
};
doCheck = false;
};
tree-format = python.pkgs.buildPythonPackage { tree-format = python.pkgs.buildPythonPackage {
name = "tree-format-0.1.2"; name = "tree-format-0.1.2";
src = fetchurl { src = fetchurl {
@ -35,4 +27,5 @@ rec {
packaging = python.pkgs.packaging; packaging = python.pkgs.packaging;
setuptools = python.pkgs.setuptools; setuptools = python.pkgs.setuptools;
toml = python.pkgs.toml;
} }

View file

@ -1,4 +1,3 @@
[pytest] [pytest]
addopts = -ra -q
testpaths = testpaths =
mach_nix/tests mach_nix/tests