1{ lib
2, fetchFromGitHub
3, buildPythonPackage
4, pythonOlder
5, py-cid
6, pytestCheckHook
7, pytest-cov
8}:
9
10buildPythonPackage 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}