Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 58 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, buildPythonPackage, fetchFromGitHub, hatch-vcs, hatchling, numpy, pytest-xdist, pytestCheckHook, pythonOlder,}:
buildPythonPackage rec { pname = "pyhamcrest"; version = "2.1.0"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "hamcrest"; repo = "PyHamcrest"; rev = "refs/tags/V${version}"; hash = "sha256-VkfHRo4k8g9/QYG4r79fXf1NXorVdpUKUgVrbV2ELMU="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace 'dynamic = ["version"]' 'version = "${version}"' '';
nativeBuildInputs = [ hatch-vcs hatchling ];
nativeCheckInputs = [ numpy pytest-xdist pytestCheckHook ];
disabledTests = [ # Tests started failing with numpy 1.24 "test_numpy_numeric_type_complex" "test_numpy_numeric_type_float" "test_numpy_numeric_type_int" ];
pythonImportsCheck = [ "hamcrest" ];
meta = with lib; { description = "Hamcrest framework for matcher objects"; homepage = "https://github.com/hamcrest/PyHamcrest"; license = licenses.bsd3; maintainers = with maintainers; [ alunduil ]; };}