diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-01-20 11:49:57 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-01-20 12:05:21 +0100 |
commit | 642788bd852252748dda8ad27b6ac887041370e2 (patch) | |
tree | e90954da56262d139366d0e6eaed97fc6f4b9e14 /pkgs/development/python-modules/maya | |
parent | 12ff86038039a370059d612ef090b246d341622d (diff) |
python.pkgs.maya: init at 0.3.3
Diffstat (limited to 'pkgs/development/python-modules/maya')
-rw-r--r-- | pkgs/development/python-modules/maya/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/maya/default.nix b/pkgs/development/python-modules/maya/default.nix new file mode 100644 index 0000000000000..9c6cb241fea51 --- /dev/null +++ b/pkgs/development/python-modules/maya/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchPypi, fetchpatch, buildPythonPackage +, 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; + + meta = with stdenv.lib; { + description = "Datetimes for Humans"; + homepage = https://github.com/kennethreitz/maya; + license = licenses.mit; + }; +} |