1{ 2 buildPythonPackage, 3 hatchling, 4 pyyaml, 5 ua-parser, 6 versioningit, 7}: 8 9buildPythonPackage 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 # don't use git to determine version 18 substituteInPlace pyproject.toml \ 19 --replace-fail 'dynamic = ["version"]' 'version = "${version}"' 20 ''; 21 22 build-system = [ 23 hatchling 24 pyyaml 25 versioningit 26 ]; 27}