Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at domenkozar-patch-1 52 lines 965 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, hatch-vcs 5, hatchling 6, numpy 7, pytest-xdist 8, pytestCheckHook 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "pyhamcrest"; 14 version = "2.0.4"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "hamcrest"; 21 repo = "PyHamcrest"; 22 rev = "refs/tags/V${version}"; 23 hash = "sha256-CIkttiijbJCR0zdmwM5JvFogQKYuHUXHJhdyWonHcGk="; 24 }; 25 26 nativeBuildInputs = [ 27 hatch-vcs 28 hatchling 29 ]; 30 31 checkInputs = [ 32 numpy 33 pytest-xdist 34 pytestCheckHook 35 ]; 36 37 postPatch = '' 38 substituteInPlace pyproject.toml \ 39 --replace 'dynamic = ["version"]' 'version = "${version}"' 40 ''; 41 42 pythonImportsCheck = [ 43 "hamcrest" 44 ]; 45 46 meta = with lib; { 47 description = "Hamcrest framework for matcher objects"; 48 homepage = "https://github.com/hamcrest/PyHamcrest"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ alunduil ]; 51 }; 52}