git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.pytest-cases: init at 3.4.6
commitf9f911168e18f69139536b87e813b8f4ff48d2bc authorFabian Affolter <mail@fabian-affolter.ch> dateTue 4 May 2021, 13:30 (6 years ago) parent555d096
2 files changed+53
pkgs/development/python-modules/pytest-cases/default.nix+51 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pytest-cases/default.nixnew file+51
@@ -0,0 +1,51 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, makefun
5+, decopatch
6+, pythonOlder
7+, pytest
8+, setuptools-scm
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "pytest-cases";
13+ version = "3.4.6";
14+ disabled = pythonOlder "3.6";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "17w4s6622i97q81g15zamqm536ib00grgdfk2f4kk9bw2k7sdlq6";
19+ };
20+
21+ nativeBuildInputs = [
22+ setuptools-scm
23+ ];
24+
25+ buildInputs = [
26+ pytest
27+ ];
28+
29+ propagatedBuildInputs = [
30+ decopatch
31+ makefun
32+ ];
33+
34+ postPatch = ''
35+ substituteInPlace setup.cfg --replace "pytest-runner" ""
36+ '';
37+
38+ # Tests have dependencies (pytest-harvest, pytest-steps) which
39+ # are not available in Nixpkgs. Most of the packages (decopatch,
40+ # makefun, pytest-*) have circular dependecies.
41+ doCheck = false;
42+
43+ pythonImportsCheck = [ "pytest_cases" ];
44+
45+ meta = with lib; {
46+ description = "Separate test code from test cases in pytest";
47+ homepage = "https://github.com/smarie/python-pytest-cases";
48+ license = licenses.bsd3;
49+ maintainers = with maintainers; [ fab ];
50+ };
51+}
pkgs/top-level/python-packages.nix+2
@@ -6267,6 +6267,8 @@ in {
62676267 pytest-cache = self.pytestcache; # added 2021-01-04
62686268 pytestcache = callPackage ../development/python-modules/pytestcache { };
62696269
6270+ pytest-cases = callPackage ../development/python-modules/pytest-cases{ };
6271+
62706272 pytest-catchlog = callPackage ../development/python-modules/pytest-catchlog { };
62716273
62726274 pytest-celery = callPackage ../development/python-modules/pytest-celery { };