40 lines
894 B
Nix
40 lines
894 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-dateutil";
|
|
version = "2.8.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
# cyclic dependency: tests need freezegun, which depends on python-dateutil
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"dateutil.easter"
|
|
"dateutil.parser"
|
|
"dateutil.relativedelta"
|
|
"dateutil.rrule"
|
|
"dateutil.tz"
|
|
"dateutil.utils"
|
|
"dateutil.zoneinfo"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Powerful extensions to the standard datetime module";
|
|
homepage = "https://github.com/dateutil/dateutil/";
|
|
license = with licenses; [ asl20 bsd3 ];
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|