python3Packages.dunamai: init at 1.10.0
This commit is contained in:
parent
de8120a340
commit
fa9ee43d7f
52
pkgs/development/python-modules/dunamai/default.nix
Normal file
52
pkgs/development/python-modules/dunamai/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, poetry-core
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, importlib-metadata
|
||||
, packaging
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dunamai";
|
||||
version = "1.10.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mtkennerly";
|
||||
repo = "dunamai";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-Sp0yfNkFwNc2qR9aSPteBqZcqRokM9whOVmduXVK3CI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
packaging
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
# needs to be able to run dunami from PATH
|
||||
preCheck = ''
|
||||
export PATH=$PATH:$out/bin
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "dunamai" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dynamic version generation";
|
||||
homepage = "https://github.com/mtkennerly/dunamai";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jmgilman ];
|
||||
};
|
||||
}
|
@ -2502,6 +2502,8 @@ in {
|
||||
|
||||
dulwich = callPackage ../development/python-modules/dulwich { };
|
||||
|
||||
dunamai = callPackage ../development/python-modules/dunamai { };
|
||||
|
||||
dungeon-eos = callPackage ../development/python-modules/dungeon-eos { };
|
||||
|
||||
dwdwfsapi = callPackage ../development/python-modules/dwdwfsapi { };
|
||||
|
Loading…
Reference in New Issue
Block a user