2021-03-09 03:18:52 +00:00
|
|
|
{ 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=";
|
|
|
|
};
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace "pytest >= 5.0, < 7.0" "pytest >= 5.0"
|
|
|
|
'';
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
py-cid
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|