python313Packages.durationpy: init at 0.9

New dependency for the kubernets python package.
This commit is contained in:
Martin Weinelt
2025-01-27 10:55:52 +01:00
parent cec34fba16
commit 30ad08f88c
2 changed files with 37 additions and 0 deletions
@@ -0,0 +1,35 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "durationpy";
version = "0.9";
pyproject = true;
src = fetchFromGitHub {
owner = "icholy";
repo = "durationpy";
rev = version;
hash = "sha256-R/cZPnUUlosGHCOcqwRJ0GJlcB6Lu5a3e5h1CQ6fysA=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test.py" ];
pythonImportsCheck = [ "durationpy" ];
meta = {
description = "Module for converting between datetime.timedelta and Go's time.Duration strings";
homepage = "https://github.com/icholy/durationpy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};
}
+2
View File
@@ -3971,6 +3971,8 @@ self: super: with self; {
duo-client = callPackage ../development/python-modules/duo-client { };
durationpy = callPackage ../development/python-modules/durationpy { };
durus = callPackage ../development/python-modules/durus { };
dvc = callPackage ../development/python-modules/dvc { };