nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 python-dateutil,
7 types-python-dateutil,
8 tzdata,
9 pytestCheckHook,
10 pytest-cov-stub,
11 pytest-mock,
12 pytz,
13 simplejson,
14}:
15
16buildPythonPackage (finalAttrs: {
17 pname = "arrow";
18 version = "1.4.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "crsmithdev";
23 repo = "arrow";
24 tag = finalAttrs.version;
25 hash = "sha256-nK78Lo+7eitB+RS7BZkM+BNudviirAowc4a1uQdLC0w=";
26 };
27
28 build-system = [ flit-core ];
29
30 dependencies = [
31 python-dateutil
32 types-python-dateutil
33 tzdata
34 ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 pytest-cov-stub
39 pytest-mock
40 pytz
41 simplejson
42 ];
43
44 # ParserError: Could not parse timezone expression "America/Nuuk"
45 #disabledTests = [ "test_parse_tz_name_zzz" ];
46
47 pythonImportsCheck = [ "arrow" ];
48
49 meta = {
50 changelog = "https://github.com/arrow-py/arrow/releases/tag/${finalAttrs.src.tag}";
51 description = "Python library for date manipulation";
52 homepage = "https://github.com/crsmithdev/arrow";
53 license = lib.licenses.asl20;
54 maintainers = with lib.maintainers; [ thoughtpolice ];
55 };
56})