python312Packages.ua-parser-builtins: init at 1.0.0

This commit is contained in:
Robert Schütz 2024-11-28 23:38:31 -08:00
parent fc0a7fe9c0
commit ba4d412beb
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{
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 = ''
# break dependency cycle and don't use git to determine version
substituteInPlace pyproject.toml \
--replace-fail 'dependencies = ["ua-parser"]' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [
hatchling
pyyaml
versioningit
];
}

View File

@ -17239,6 +17239,8 @@ self: super: with self; {
ua-parser = callPackage ../development/python-modules/ua-parser { };
ua-parser-builtins = callPackage ../development/python-modules/ua-parser-builtins { };
uarray = callPackage ../development/python-modules/uarray { };
uart-devices = callPackage ../development/python-modules/uart-devices { };