forked from mirrors/nixpkgs
Merge pull request #164784 from jmgilman/package/dunamai
python3Packages.dunamai: init at 1.10.0
This commit is contained in:
commit
514544036f
|
@ -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";
|
||||
|
|
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 a new issue