Merge pull request #115405 from Luflosi/add-pytest-cid

python3Packages.pytest-cid: init at 1.1.1

authored by

Sandro and committed by
GitHub
29cb74cc 448151f5

+42
+40
pkgs/development/python-modules/pytest-cid/default.nix
··· 1 + { lib 2 + , fetchFromGitHub 3 + , buildPythonPackage 4 + , pythonOlder 5 + , py-cid 6 + , pytestCheckHook 7 + , pytest-cov 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "pytest-cid"; 12 + version = "1.1.1"; 13 + format = "flit"; 14 + disabled = pythonOlder "3.5"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "ntninja"; 18 + repo = pname; 19 + rev = "1ff9ec43ac9eaf76352ea7e7a060cd081cb8b68a"; # Version has no git tag 20 + sha256 = "sha256-H2RtMGYWukowTTfqZSx+hikxzkqw1v5bA4AfZfiVl8U="; 21 + }; 22 + 23 + propagatedBuildInputs = [ 24 + py-cid 25 + ]; 26 + 27 + checkInputs = [ 28 + pytestCheckHook 29 + pytest-cov 30 + ]; 31 + 32 + pythonImportsCheck = [ "pytest_cid" ]; 33 + 34 + meta = with lib; { 35 + homepage = "https://github.com/ntninja/pytest-cid"; 36 + description = "A simple wrapper around py-cid for easily writing tests involving CIDs in datastructures"; 37 + license = licenses.mpl20; 38 + maintainers = with maintainers; [ Luflosi ]; 39 + }; 40 + }
+2
pkgs/top-level/python-packages.nix
··· 6251 6251 6252 6252 pytest-check = callPackage ../development/python-modules/pytest-check { }; 6253 6253 6254 + pytest-cid = callPackage ../development/python-modules/pytest-cid { }; 6255 + 6254 6256 pytest-click = callPackage ../development/python-modules/pytest-click { }; 6255 6257 6256 6258 pytest-cov = self.pytestcov; # self 2021-01-04