Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 # 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}