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 postPatch = '' 24 substituteInPlace pyproject.toml \ 25 --replace "pytest >= 5.0, < 7.0" "pytest >= 5.0" 26 ''; 27 28 propagatedBuildInputs = [ 29 py-cid 30 ]; 31 32 checkInputs = [ 33 pytestCheckHook 34 pytest-cov 35 ]; 36 37 pythonImportsCheck = [ "pytest_cid" ]; 38 39 meta = with lib; { 40 homepage = "https://github.com/ntninja/pytest-cid"; 41 description = "A simple wrapper around py-cid for easily writing tests involving CIDs in datastructures"; 42 license = licenses.mpl20; 43 maintainers = with maintainers; [ Luflosi ]; 44 }; 45}