3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #164784 from jmgilman/package/dunamai

python3Packages.dunamai: init at 1.10.0
This commit is contained in:
Fabian Affolter 2022-03-22 13:13:35 +01:00 committed by GitHub
commit 514544036f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 0 deletions

View file

@ -5869,6 +5869,12 @@
githubId = 587870;
name = "Jonathan Mettes";
};
jmgilman = {
email = "joshuagilman@gmail.com";
github = "jmgilman";
githubId = 2308444;
name = "Joshua Gilman";
};
jo1gi = {
email = "joakimholm@protonmail.com";
github = "jo1gi";

View 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 ];
};
}

View file

@ -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 { };