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

python3Packages.pytest-cid: init at 1.1.1
This commit is contained in:
Sandro 2021-03-08 19:24:30 +01:00 committed by GitHub
commit 29cb74cc7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, py-cid
, pytestCheckHook
, pytest-cov
}:
buildPythonPackage rec {
pname = "pytest-cid";
version = "1.1.1";
format = "flit";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "ntninja";
repo = pname;
rev = "1ff9ec43ac9eaf76352ea7e7a060cd081cb8b68a"; # Version has no git tag
sha256 = "sha256-H2RtMGYWukowTTfqZSx+hikxzkqw1v5bA4AfZfiVl8U=";
};
propagatedBuildInputs = [
py-cid
];
checkInputs = [
pytestCheckHook
pytest-cov
];
pythonImportsCheck = [ "pytest_cid" ];
meta = with lib; {
homepage = "https://github.com/ntninja/pytest-cid";
description = "A simple wrapper around py-cid for easily writing tests involving CIDs in datastructures";
license = licenses.mpl20;
maintainers = with maintainers; [ Luflosi ];
};
}

View File

@ -6251,6 +6251,8 @@ in {
pytest-check = callPackage ../development/python-modules/pytest-check { };
pytest-cid = callPackage ../development/python-modules/pytest-cid { };
pytest-click = callPackage ../development/python-modules/pytest-click { };
pytest-cov = self.pytestcov; # self 2021-01-04