Skip to content

Commit

Permalink
Merge pull request #201459 from tjni/od
Browse files Browse the repository at this point in the history
python310Packages.repeated-test: init at 2.3.1
  • Loading branch information
fabaff authored Nov 19, 2022
2 parents 42072df + 056796e commit 3c0f6f5
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 30 deletions.
11 changes: 4 additions & 7 deletions pkgs/development/python-modules/clize/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
, pytestCheckHook
, pythonOlder
, python-dateutil
, setuptools
, repeated-test
, setuptools-scm
, sigtools
, unittest2
}:

buildPythonPackage rec {
Expand All @@ -26,7 +26,7 @@ buildPythonPackage rec {
};

nativeBuildInputs = [
setuptools
setuptools-scm
];

propagatedBuildInputs = [
Expand All @@ -42,14 +42,11 @@ buildPythonPackage rec {
];
};

# repeated_test no longer exists in nixpkgs
# also see: https://github.com/epsy/clize/issues/74
doCheck = false;
checkInputs = [
pytestCheckHook
python-dateutil
pygments
unittest2
repeated-test
];

pythonImportsCheck = [
Expand Down
23 changes: 16 additions & 7 deletions pkgs/development/python-modules/od/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
{ lib, buildPythonPackage, fetchPypi, unittest2 }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, repeated-test
}:

buildPythonPackage rec {
pname = "od";
version = "2.0.2";
format = "setuptools";

disabled = pythonOlder "3.5";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-uGkj2Z8mLg51IV+FOqwZl1hT7zVyjmD1CcY/VbH4tKk=";
hash = "sha256-uGkj2Z8mLg51IV+FOqwZl1hT7zVyjmD1CcY/VbH4tKk=";
};

# repeated_test no longer exists in nixpkgs
# also see: https://github.com/epsy/od/issues/1
doCheck = false;
checkInputs = [
unittest2
repeated-test
];

pythonImportsCheck = [
"od"
];

meta = with lib; {
description = "Shorthand syntax for building OrderedDicts";
homepage = "https://github.com/epsy/od";
license = licenses.mit;
maintainers = with maintainers; [ ];
};

}
45 changes: 45 additions & 0 deletions pkgs/development/python-modules/repeated-test/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools-scm
, six
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "repeated-test";
version = "2.3.1";
format = "pyproject";

disabled = pythonOlder "3.5";

src = fetchPypi {
pname = "repeated_test";
inherit version;
hash = "sha256-TbVyQA7EjCSwo6qfDksbE8IU1ElkSCABEUBWy5j1KJc=";
};

nativeBuildInputs = [
setuptools-scm
];

propagatedBuildInputs = [
six
];

checkInputs = [
pytestCheckHook
];

pythonImportsCheck = [
"repeated_test"
];

meta = with lib; {
description = "Unittest-compatible framework for repeating a test function over many fixtures";
homepage = "https://github.com/epsy/repeated_test";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}
35 changes: 20 additions & 15 deletions pkgs/development/python-modules/sigtools/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
{ lib
, attrs
, buildPythonPackage
, fetchPypi
, sphinx
, mock
, coverage
, unittest2
, attrs
, funcsigs
, six
, pythonOlder
, repeated-test
, setuptools-scm
, sphinx
, unittestCheckHook
}:

buildPythonPackage rec {
pname = "sigtools";
version = "4.0.1";
format = "pyproject";

disabled = pythonOlder "3.4";

src = fetchPypi {
inherit pname version;
sha256 = "sha256-S44TWpzU0uoA2mcMCTNy105nK6OruH9MmNjnPepURFw=";
hash = "sha256-S44TWpzU0uoA2mcMCTNy105nK6OruH9MmNjnPepURFw=";
};

nativeBuildInputs = [
Expand All @@ -29,17 +30,21 @@ buildPythonPackage rec {
attrs
];

patchPhase = ''sed -i s/test_suite="'"sigtools.tests"'"/test_suite="'"unittest2.collector"'"/ setup.py'';
checkInputs = [
mock
repeated-test
sphinx
unittestCheckHook
];

# repeated_test no longer exists in nixpkgs
# Also see: https://github.com/epsy/sigtools/issues/26
doCheck = false;
checkInputs = [ sphinx mock coverage unittest2 ];
pythonImportsCheck = [
"sigtools"
];

meta = with lib; {
description = "Utilities for working with 3.3's inspect.Signature objects.";
homepage = "https://pypi.python.org/pypi/sigtools";
description = "Utilities for working with inspect.Signature objects";
homepage = "https://sigtools.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ ];
};

}
2 changes: 1 addition & 1 deletion pkgs/top-level/python-aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ mapAliases ({
qasm2image = throw "qasm2image is no longer maintained (since November 2018), and is not compatible with the latest pythonPackages.qiskit versions."; # added 2020-12-09
qiskit-aqua = throw "qiskit-aqua has been removed due to deprecation, with its functionality moved to different qiskit packages";
rdflib-jsonld = throw "rdflib-jsonld is not compatible with rdflib 6"; # added 2021-11-05
repeated_test = throw "repeated_test is no longer maintained"; # added 2022-01-11
repeated_test = repeated-test; # added 2022-11-15
requests_oauthlib = requests-oauthlib; # added 2022-02-12
requests_toolbelt = requests-toolbelt; # added 2017-09-26
roboschool = throw "roboschool is deprecated in favor of PyBullet and has been removed"; # added 2022-01-15
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9654,6 +9654,8 @@ self: super: with self; {

reparser = callPackage ../development/python-modules/reparser { };

repeated-test = callPackage ../development/python-modules/repeated-test { };

repocheck = callPackage ../development/python-modules/repocheck { };

reportengine = callPackage ../development/python-modules/reportengine { };
Expand Down

0 comments on commit 3c0f6f5

Please sign in to comment.