mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-24 00:41:33 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
36 lines
707 B
Nix
36 lines
707 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "semantic-version";
|
|
version = "2.10.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "semantic_version";
|
|
inherit version;
|
|
sha256 = "sha256-vau20zaZjLs3jUuds6S1ah4yNXAdwF6iaQ2amX7VBBw=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"semantic_version"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A library implementing the 'SemVer' scheme";
|
|
homepage = "https://github.com/rbarrois/python-semanticversion/";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ layus makefu ];
|
|
};
|
|
}
|