1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, hatchling 5, hatch-vcs 6, numpy 7, pythonOlder 8, pytest-xdist 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "pyhamcrest"; 14 version = "2.0.4"; 15 format = "pyproject"; 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "hamcrest"; 20 repo = "PyHamcrest"; 21 rev = "refs/tags/V${version}"; 22 hash = "sha256-CIkttiijbJCR0zdmwM5JvFogQKYuHUXHJhdyWonHcGk="; 23 }; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 27 nativeBuildInputs = [ 28 hatchling 29 hatch-vcs 30 ]; 31 32 checkInputs = [ 33 numpy 34 pytest-xdist 35 pytestCheckHook 36 ]; 37 38 meta = with lib; { 39 homepage = "https://github.com/hamcrest/PyHamcrest"; 40 description = "Hamcrest framework for matcher objects"; 41 license = licenses.bsd3; 42 maintainers = with maintainers; [ 43 alunduil 44 ]; 45 }; 46}