blob: 8d75882f6868d59767ff21da1a3d3204ed0ed383 (
plain)
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
|
{
buildPythonPackage,
hatchling,
pyyaml,
ua-parser,
versioningit,
}:
buildPythonPackage rec {
pname = "ua-parser-builtins";
inherit (ua-parser) version src;
pyproject = true;
sourceRoot = "${src.name}/ua-parser-builtins";
postPatch = ''
# don't use git to determine version
substituteInPlace pyproject.toml \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [
hatchling
pyyaml
versioningit
];
}
|