python310Packages.pyhamcrest: 2.0.3 -> 2.0.4
This commit is contained in:
parent
0856a67e68
commit
75734fa56d
@ -1,19 +1,20 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, hatchling
|
|
||||||
, hatch-vcs
|
, hatch-vcs
|
||||||
|
, hatchling
|
||||||
, numpy
|
, numpy
|
||||||
, pythonOlder
|
|
||||||
, pytest-xdist
|
, pytest-xdist
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyhamcrest";
|
pname = "pyhamcrest";
|
||||||
version = "2.0.4";
|
version = "2.0.4";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
disabled = pythonOlder "3.6";
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hamcrest";
|
owner = "hamcrest";
|
||||||
@ -22,11 +23,9 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-CIkttiijbJCR0zdmwM5JvFogQKYuHUXHJhdyWonHcGk=";
|
hash = "sha256-CIkttiijbJCR0zdmwM5JvFogQKYuHUXHJhdyWonHcGk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
hatchling
|
|
||||||
hatch-vcs
|
hatch-vcs
|
||||||
|
hatchling
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
@ -35,12 +34,19 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace 'dynamic = ["version"]' 'version = "${version}"'
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"hamcrest"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/hamcrest/PyHamcrest";
|
|
||||||
description = "Hamcrest framework for matcher objects";
|
description = "Hamcrest framework for matcher objects";
|
||||||
|
homepage = "https://github.com/hamcrest/PyHamcrest";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [
|
maintainers = with maintainers; [ alunduil ];
|
||||||
alunduil
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user