-
Notifications
You must be signed in to change notification settings - Fork 32
/
default.nix
89 lines (81 loc) · 1.78 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# build system
, poetry-core
# system dependencies
, cracklib
# python dependencies
, attrs
, cached-property
, dnspython
, jinja2
, ldap3
, pexpect
, pycryptodome
, pygithub
, pymysql
, pyyaml
, redis
, requests
, sqlalchemy_1_4
}:
let
cracklib-pypi = buildPythonPackage rec {
pname = "cracklib";
version = "2.9.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-o/S6jNIOrppRbridviJJghx3EIsERyMFW0W/eTYVABI=";
};
propagatedBuildInputs = [ cracklib ];
# cracklib uses unittest assertEquals which is removed in Python 3.12
doCheck = false;
};
pysnmp-pypi = buildPythonPackage rec {
pname = "pysnmp";
version = "4.4.12";
src = fetchPypi {
inherit pname version;
hash = "sha256-DD2+8vlYysqWBx/lwZ3kPpwbBISrAqDPCLGQvO52i6k=";
};
# https://github.com/NixOS/nixpkgs/blob/689fed12a013f56d4c4d3f612489634267d86529/pkgs/development/python-modules/pysnmp/default.nix#L20C3-L20C67
patches = [ ./patches/setup.py-Fix-the-setuptools-version-check.patch ];
doCheck = false;
};
in
buildPythonPackage {
pname = "ocflib";
version = "2024-11-13";
format = "pyproject";
disabled = pythonOlder "3.7";
src = ./.;
buildInputs = [
cracklib # cracklib system library
];
propagatedBuildInputs = [
attrs
cached-property
cracklib-pypi # cracklib python package
dnspython
jinja2
ldap3
pexpect
pycryptodome
pygithub
pymysql
pysnmp-pypi
pyyaml
redis
requests
sqlalchemy_1_4
poetry-core
];
meta = with lib; {
description = "libraries for account and server management";
homepage = "https://github.com/ocf/ocflib";
license = [ licenses.mit licenses.gpl2Plus ];
platforms = platforms.unix;
};
}