python3Packages.python-datemath: init at 1.5.5
This commit is contained in:
parent
f5e4406520
commit
d37aa5609b
2 changed files with 49 additions and 0 deletions
47
pkgs/development/python-modules/python-datemath/default.nix
Normal file
47
pkgs/development/python-modules/python-datemath/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
{ lib
|
||||||
|
, arrow
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pythonOlder
|
||||||
|
, pytestCheckHook
|
||||||
|
, unittest2
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "python-datemath";
|
||||||
|
version = "1.5.5";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nickmaccarthy";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-WVWGhyBguE1+KEMQu0N5QxO7IC4rPEJ/2L3VWUCQNi4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
arrow
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
unittest2
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
"tests.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"datemath"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python module to emulate the date math used in SOLR and Elasticsearch";
|
||||||
|
homepage = "https://github.com/nickmaccarthy/python-datemath";
|
||||||
|
license = with licenses; [ asl20 ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -7625,6 +7625,8 @@ in {
|
||||||
|
|
||||||
python-daemon = callPackage ../development/python-modules/python-daemon { };
|
python-daemon = callPackage ../development/python-modules/python-daemon { };
|
||||||
|
|
||||||
|
python-datemath = callPackage ../development/python-modules/python-datemath { };
|
||||||
|
|
||||||
python-dateutil = callPackage ../development/python-modules/dateutil { };
|
python-dateutil = callPackage ../development/python-modules/dateutil { };
|
||||||
|
|
||||||
python-dbusmock = callPackage ../development/python-modules/python-dbusmock { };
|
python-dbusmock = callPackage ../development/python-modules/python-dbusmock { };
|
||||||
|
|
Loading…
Reference in a new issue