tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.ua-parser-builtins: init at 1.0.0
Robert Schütz
1 year ago
ba4d412b
fc0a7fe9
+30
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
ua-parser-builtins
default.nix
top-level
python-packages.nix
+28
pkgs/development/python-modules/ua-parser-builtins/default.nix
···
1
1
+
{
2
2
+
buildPythonPackage,
3
3
+
hatchling,
4
4
+
pyyaml,
5
5
+
ua-parser,
6
6
+
versioningit,
7
7
+
}:
8
8
+
9
9
+
buildPythonPackage rec {
10
10
+
pname = "ua-parser-builtins";
11
11
+
inherit (ua-parser) version src;
12
12
+
pyproject = true;
13
13
+
14
14
+
sourceRoot = "${src.name}/ua-parser-builtins";
15
15
+
16
16
+
postPatch = ''
17
17
+
# break dependency cycle and don't use git to determine version
18
18
+
substituteInPlace pyproject.toml \
19
19
+
--replace-fail 'dependencies = ["ua-parser"]' "" \
20
20
+
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
21
21
+
'';
22
22
+
23
23
+
build-system = [
24
24
+
hatchling
25
25
+
pyyaml
26
26
+
versioningit
27
27
+
];
28
28
+
}
+2
pkgs/top-level/python-packages.nix
···
17239
17239
17240
17240
ua-parser = callPackage ../development/python-modules/ua-parser { };
17241
17241
17242
17242
+
ua-parser-builtins = callPackage ../development/python-modules/ua-parser-builtins { };
17243
17243
+
17242
17244
uarray = callPackage ../development/python-modules/uarray { };
17243
17245
17244
17246
uart-devices = callPackage ../development/python-modules/uart-devices { };