1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchpatch
5}:
6
7buildPythonPackage rec {
8 pname = "udatetime";
9 version = "0.0.17";
10
11 src = fetchPypi {
12 inherit pname version;
13 hash = "sha256-sQvFVwaZpDinLitaZOdr2MKO4779FvIJOHpVB/oLgwE=";
14 };
15
16 patches = [
17 # fix build with python 3.9
18 # https://github.com/freach/udatetime/pull/33
19 (fetchpatch {
20 name = "freach-udatetime-pull-33.patch";
21 url = "https://github.com/freach/udatetime/compare/75a07891426364f8bf0b44305b00bb1dd90534ae...2cfbc92cb274a80476a45c6c0d387c19e77a9f6e.patch";
22 sha256 = "pPskJnie+9H3qKqf8X37sxB+CH3lpkj7IYl8HfiuV/4=";
23 })
24 ];
25
26 # tests not included on pypi
27 doCheck = false;
28
29 pythonImportsCheck = [ "udatetime" ];
30
31 meta = with lib; {
32 description = "Fast RFC3339 compliant Python date-time library";
33 homepage = "https://github.com/freach/udatetime";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ globin ];
36 };
37}