From eb862d7d4fbabb4fd05524963a8f7830e5044fbc Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 18 Apr 2022 09:32:32 +0000 Subject: [PATCH] python310Packages.enaml: 0.14.1 -> 0.15.0 This is the first version using setuptools-scm. Because we don't keep enough git metadata to determine the version, we use SETUPTOOLS_SCM_PRETEND_VERSION instead. https://github.com/NixOS/nixpkgs/issues/41136 --- pkgs/development/python-modules/enaml/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/enaml/default.nix b/pkgs/development/python-modules/enaml/default.nix index 9e6a910b2ba..ccd8bb497d1 100644 --- a/pkgs/development/python-modules/enaml/default.nix +++ b/pkgs/development/python-modules/enaml/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchFromGitHub +, setuptools-scm , atom , ply , kiwisolver @@ -12,13 +13,13 @@ buildPythonPackage rec { pname = "enaml"; - version = "0.14.1"; + version = "0.15.0"; src = fetchFromGitHub { owner = "nucleic"; repo = pname; - rev = version; - sha256 = "sha256-QfI7cwl2c5HOlFNNdG+oOv48X9jJZnZNU/kWgutWe6k="; + rev = "refs/tags/${version}"; + sha256 = "sha256-xSMgT8VooDS5kvf4BCcVbv/MNfRDTVnPKU3Ou+/Gq7I="; }; # qt bindings cannot be found during tests @@ -39,6 +40,7 @@ buildPythonPackage rec { "enaml.workbench" ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ atom ply @@ -48,6 +50,7 @@ buildPythonPackage rec { cppy bytecode ]; + SETUPTOOLS_SCM_PRETEND_VERSION = version; meta = with lib; { homepage = "https://github.com/nucleic/enaml";