1{ lib, fetchPypi, fetchpatch, buildPythonPackage
2, dateparser, humanize, pendulum, ruamel-yaml, tzlocal }:
3
4buildPythonPackage rec {
5 pname = "maya";
6 version = "0.3.3";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "1x88k4irpckvd7jf2yvqjw1s52hjqbxym1r1d928yb3fkj7rvlxs";
11 };
12
13 patches = [
14 (fetchpatch {
15 # https://github.com/kennethreitz/maya/issues/112
16 # Merged, so should be in next release.
17 url = "https://github.com/kennethreitz/maya/commit/f69a93b1103130139cdec30511777823957fb659.patch";
18 sha256 = "152ba7amv9dhhx1wcklfalsdzsxggik9f7rsrikms921lq9xqc8h";
19 })
20 ];
21
22 propagatedBuildInputs = [ dateparser humanize pendulum ruamel-yaml tzlocal ];
23
24 # No tests
25 doCheck = false;
26
27 meta = with lib; {
28 description = "Datetimes for Humans";
29 homepage = "https://github.com/kennethreitz/maya";
30 license = licenses.mit;
31 };
32}