From 1c7c689c0fb4ecb6695909fbf065d93e0bf53034 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 12 May 2022 15:13:13 +0200 Subject: [PATCH] python310Packages.debian-inspector: pretend version --- .../python-modules/debian-inspector/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/debian-inspector/default.nix b/pkgs/development/python-modules/debian-inspector/default.nix index 0da7f634d84..1c8cee1d718 100644 --- a/pkgs/development/python-modules/debian-inspector/default.nix +++ b/pkgs/development/python-modules/debian-inspector/default.nix @@ -6,24 +6,30 @@ , commoncode , pytestCheckHook , setuptools-scm +, pythonOlder }: buildPythonPackage rec { pname = "debian-inspector"; version = "30.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { pname = "debian_inspector"; inherit version; - sha256 = "sha256-0PT5sT6adaqgYQtWjks12ys0z1C3n116aeJaEKR/Wxg="; + hash = "sha256-0PT5sT6adaqgYQtWjks12ys0z1C3n116aeJaEKR/Wxg="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + dontConfigure = true; + nativeBuildInputs = [ setuptools-scm ]; - dontConfigure = true; - propagatedBuildInputs = [ chardet attrs