depot/third_party/nixpkgs/pkgs/development/python-modules/pyhamcrest/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

46 lines
845 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, hatchling
, hatch-vcs
, numpy
, pythonOlder
, pytest-xdist
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyhamcrest";
version = "2.0.4";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "hamcrest";
repo = "PyHamcrest";
rev = "refs/tags/V${version}";
hash = "sha256-CIkttiijbJCR0zdmwM5JvFogQKYuHUXHJhdyWonHcGk=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
hatchling
hatch-vcs
];
checkInputs = [
numpy
pytest-xdist
pytestCheckHook
];
meta = with lib; {
homepage = "https://github.com/hamcrest/PyHamcrest";
description = "Hamcrest framework for matcher objects";
license = licenses.bsd3;
maintainers = with maintainers; [
alunduil
];
};
}