python313Packages.durationpy: init at 0.9
New dependency for the kubernets python package.
This commit is contained in:
@@ -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; [ ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user