File tree Expand file tree Collapse file tree 9 files changed +986
-48
lines changed
development/python-modules Expand file tree Collapse file tree 9 files changed +986
-48
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ python.pkgs.buildPythonApplication rec {
5050 "pyopenssl"
5151 "pytz"
5252 "sqlalchemy"
53+ "ua-parser"
5354 ] ;
5455
5556 dependencies =
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ python.pkgs.buildPythonApplication rec {
104104 "redis"
105105 "requests"
106106 "sentry-sdk"
107+ "ua-parser"
107108 ] ;
108109
109110 pythonRemoveDeps = [
Original file line number Diff line number Diff line change 44 buildPythonPackage ,
55 defang ,
66 dnspython ,
7+ eval-type-backport ,
78 fetchFromGitHub ,
89 playwrightcapture ,
910 poetry-core ,
1011 pydantic ,
1112 pythonOlder ,
1213 redis ,
1314 requests ,
14- sphinx ,
1515 ua-parser ,
1616} :
1717
1818buildPythonPackage rec {
1919 pname = "lacuscore" ;
20- version = "1.12.5 " ;
20+ version = "1.12.6 " ;
2121 pyproject = true ;
2222
2323 disabled = pythonOlder "3.9" ;
@@ -26,7 +26,7 @@ buildPythonPackage rec {
2626 owner = "ail-project" ;
2727 repo = "LacusCore" ;
2828 rev = "refs/tags/v${ version } " ;
29- hash = "sha256-iozCgQ7VULQVlKaHmThxiFDZ2hly2yYMdIrXBFHFRfI =" ;
29+ hash = "sha256-KiYpPgwMsIuIDUjQfw83ATiE5VI2XMaxGsnP5xEypqc =" ;
3030 } ;
3131
3232 pythonRelaxDeps = [
@@ -37,18 +37,21 @@ buildPythonPackage rec {
3737
3838 build-system = [ poetry-core ] ;
3939
40-
41- dependencies = [
42- async-timeout
43- defang
44- dnspython
45- playwrightcapture
46- pydantic
47- redis
48- requests
49- sphinx
50- ua-parser
51- ] ;
40+ dependencies =
41+ [
42+ defang
43+ dnspython
44+ playwrightcapture
45+ pydantic
46+ redis
47+ requests
48+ ua-parser
49+ ]
50+ ++ playwrightcapture . optional-dependencies . recaptcha
51+ ++ redis . optional-dependencies . hiredis
52+ ++ ua-parser . optional-dependencies . regex
53+ ++ lib . optionals ( pythonOlder "3.11" ) [ async-timeout ]
54+ ++ lib . optionals ( pythonOlder "3.10" ) [ eval-type-backport ] ;
5255
5356 # Module has no tests
5457 doCheck = false ;
Original file line number Diff line number Diff line change 1+ {
2+ buildPythonPackage ,
3+ hatchling ,
4+ pyyaml ,
5+ ua-parser ,
6+ versioningit ,
7+ } :
8+
9+ buildPythonPackage rec {
10+ pname = "ua-parser-builtins" ;
11+ inherit ( ua-parser ) version src ;
12+ pyproject = true ;
13+
14+ sourceRoot = "${ src . name } /ua-parser-builtins" ;
15+
16+ postPatch = ''
17+ # break dependency cycle and don't use git to determine version
18+ substituteInPlace pyproject.toml \
19+ --replace-fail 'dependencies = ["ua-parser"]' "" \
20+ --replace-fail 'dynamic = ["version"]' 'version = "${ version } "'
21+ '' ;
22+
23+ build-system = [
24+ hatchling
25+ pyyaml
26+ versioningit
27+ ] ;
28+ }
You can’t perform that action at this time.
0 commit comments