Merge pull request #201459 from tjni/od

python310Packages.repeated-test: init at 2.3.1
This commit is contained in:
Fabian Affolter 2022-11-19 12:46:11 +01:00 committed by GitHub
commit 3c0f6f555b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 88 additions and 30 deletions

View file

@ -8,9 +8,9 @@
, pytestCheckHook
, pythonOlder
, python-dateutil
, setuptools
, repeated-test
, setuptools-scm
, sigtools
, unittest2
}:
buildPythonPackage rec {
@ -26,7 +26,7 @@ buildPythonPackage rec {
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
@ -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 = [

View file

@ -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; [ ];
};
}

View file

@ -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; [ ];
};
}

View file

@ -1,14 +1,13 @@
{ lib
, attrs
, buildPythonPackage
, fetchPypi
, sphinx
, mock
, coverage
, unittest2
, attrs
, funcsigs
, six
, pythonOlder
, repeated-test
, setuptools-scm
, sphinx
, unittestCheckHook
}:
buildPythonPackage rec {
@ -16,9 +15,11 @@ buildPythonPackage rec {
version = "4.0.1";
format = "pyproject";
disabled = pythonOlder "3.4";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-S44TWpzU0uoA2mcMCTNy105nK6OruH9MmNjnPepURFw=";
hash = "sha256-S44TWpzU0uoA2mcMCTNy105nK6OruH9MmNjnPepURFw=";
};
nativeBuildInputs = [
@ -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; [ ];
};
}

View file

@ -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

View file

@ -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 { };