1{ lib
2, callPackage
3, fetchFromGitHub
4, python27
5, fetchPypi
6, ...
7}:
8
9/*
10 Notes on specific dependencies:
11 - if/when python2.7 is removed from nixpkgs, this may need to figure
12 out how to build oil's vendored python2
13 - I'm not sure if glibcLocales is worth the addition here. It's to fix
14 a libc test oil runs. My oil fork just disabled the libc tests, but
15 I haven't quite decided if that's the right long-term call, so I
16 didn't add a patch for it here yet.
17*/
18
19rec {
20 # binlore = callPackage ./binlore.nix { };
21 oil = callPackage ./oildev.nix {
22 inherit python27;
23 inherit six;
24 inherit typing;
25 };
26 configargparse = python27.pkgs.buildPythonPackage rec {
27 pname = "configargparse";
28 version = "1.5.3";
29
30 src = fetchFromGitHub {
31 owner = "bw2";
32 repo = "ConfigArgParse";
33 rev = "v${version}";
34 sha256 = "1dsai4bilkp2biy9swfdx2z0k4akw4lpvx12flmk00r80hzgbglz";
35 };
36
37 doCheck = false;
38
39 pythonImportsCheck = [ "configargparse" ];
40
41 meta = with lib; {
42 description = "A drop-in replacement for argparse";
43 homepage = "https://github.com/bw2/ConfigArgParse";
44 license = licenses.mit;
45 };
46 };
47 six = python27.pkgs.buildPythonPackage rec {
48 pname = "six";
49 version = "1.16.0";
50
51 src = fetchPypi {
52 inherit pname version;
53 sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926";
54 };
55
56 doCheck = false;
57
58 meta = {
59 description = "A Python 2 and 3 compatibility library";
60 homepage = "https://pypi.python.org/pypi/six/";
61 license = lib.licenses.mit;
62 };
63 };
64 typing = python27.pkgs.buildPythonPackage rec {
65 pname = "typing";
66 version = "3.10.0.0";
67
68 src = fetchPypi {
69 inherit pname version;
70 sha256 = "13b4ad211f54ddbf93e5901a9967b1e07720c1d1b78d596ac6a439641aa1b130";
71 };
72
73 doCheck = false;
74
75 meta = with lib; {
76 description = "Backport of typing module to Python versions older than 3.5";
77 homepage = "https://docs.python.org/3/library/typing.html";
78 license = licenses.psfl;
79 };
80 };
81}