-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #201459 from tjni/od
python310Packages.repeated-test: init at 2.3.1
- Loading branch information
Showing
6 changed files
with
88 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; [ ]; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; [ ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters