3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.PyHamcrest: 2.0.3 -> 2.0.4

This commit is contained in:
Martin Weinelt 2022-09-14 23:36:16 +02:00
parent 10508d5451
commit e2870d550b

View file

@ -1,20 +1,39 @@
{ lib, buildPythonPackage, fetchPypi { lib
, mock, pytest , buildPythonPackage
, six , fetchFromGitHub
, hatchling
, hatch-vcs
, numpy
, pythonOlder
, pytest-xdist
, pytestCheckHook
}: }:
buildPythonPackage rec {
pname = "PyHamcrest";
version = "2.0.3";
src = fetchPypi { buildPythonPackage rec {
inherit pname version; pname = "pyhamcrest";
sha256 = "dfb19cf6d71743e086fbb761ed7faea5aacbc8ec10c17a08b93ecde39192a3db"; version = "2.0.4";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "hamcrest";
repo = "PyHamcrest";
rev = "refs/tags/V${version}";
hash = "sha256-CIkttiijbJCR0zdmwM5JvFogQKYuHUXHJhdyWonHcGk=";
}; };
checkInputs = [ mock pytest ]; SETUPTOOLS_SCM_PRETEND_VERSION = version;
propagatedBuildInputs = [ six ];
doCheck = false; # pypi tarball does not include tests nativeBuildInputs = [
hatchling
hatch-vcs
];
checkInputs = [
numpy
pytest-xdist
pytestCheckHook
];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/hamcrest/PyHamcrest"; homepage = "https://github.com/hamcrest/PyHamcrest";