Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 40 lines 902 B view raw
1{ buildPythonPackage 2, typing-extensions 3, fetchPypi 4, lib 5, nix-update-script 6, hatch-vcs 7, pythonOlder 8, importlib-resources 9}: 10 11buildPythonPackage rec { 12 pname = "manifestoo-core"; 13 version = "1.0"; 14 format = "pyproject"; 15 16 src = fetchPypi { 17 inherit version; 18 pname = "manifestoo_core"; 19 hash = "sha256-cnEbws2NDxVkLEgLsYw2VQQWP69nC1SVixl9a6vHPmo="; 20 }; 21 22 nativeBuildInputs = [ 23 hatch-vcs 24 ]; 25 26 propagatedBuildInputs = 27 lib.optionals (pythonOlder "3.7") [ importlib-resources ] 28 ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; 29 30 SETUPTOOLS_SCM_PRETEND_VERSION = version; 31 32 passthru.updateScript = nix-update-script { }; 33 34 meta = with lib; { 35 description = "A library to reason about Odoo addons manifests"; 36 homepage = "https://github.com/acsone/manifestoo-core"; 37 license = licenses.lgpl3Only; 38 maintainers = with maintainers; [ yajo ]; 39 }; 40}