2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchPypi, fetchpatch, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, dateparser, humanize, pendulum, ruamel_yaml, tzlocal }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "maya";
|
|
|
|
version = "0.3.3";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1x88k4irpckvd7jf2yvqjw1s52hjqbxym1r1d928yb3fkj7rvlxs";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# https://github.com/kennethreitz/maya/issues/112
|
|
|
|
# Merged, so should be in next release.
|
|
|
|
url = "https://github.com/kennethreitz/maya/commit/f69a93b1103130139cdec30511777823957fb659.patch";
|
|
|
|
sha256 = "152ba7amv9dhhx1wcklfalsdzsxggik9f7rsrikms921lq9xqc8h";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ dateparser humanize pendulum ruamel_yaml tzlocal ];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Datetimes for Humans";
|
|
|
|
homepage = "https://github.com/kennethreitz/maya";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|