2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "looseversion";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.2.0";
|
2023-04-29 16:46:19 +00:00
|
|
|
format = "flit";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-xk5xwLKQMGg7Tqda7kMdstJcTm5TNZDlISnx2eUd4gQ=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
pytestFlagsArray = [ "tests.py" ];
|
|
|
|
pythonImportsCheck = [ "looseversion" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Version numbering for anarchists and software realists";
|
|
|
|
homepage = "https://github.com/effigies/looseversion";
|
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ pelme ];
|
|
|
|
};
|
|
|
|
}
|