From 98f89cf43cdb83576b60007c0fbdfe90d17bc401 Mon Sep 17 00:00:00 2001 From: Phillip Seeber Date: Thu, 23 Mar 2023 12:01:51 +0100 Subject: [PATCH] polarizationsolver: set a pep compliant version string --- .../python-modules/polarizationsolver/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/polarizationsolver/default.nix b/pkgs/development/python-modules/polarizationsolver/default.nix index 363dcdc4908b..d7385bd9f642 100644 --- a/pkgs/development/python-modules/polarizationsolver/default.nix +++ b/pkgs/development/python-modules/polarizationsolver/default.nix @@ -19,6 +19,12 @@ buildPythonPackage rec { hash = "sha256-LACf8Xw+o/uJ3+PD/DE/o7nwKY7fv3NyYbpjCrTTnBU="; }; + # setup.py states version="dev", which is not a valid version string for setuptools + # There has never been a formal stable release, so let's say 0.0 here. + postPatch = '' + substituteInPlace ./setup.py --replace 'version="dev",' 'version="0.0",' + ''; + propagatedBuildInputs = [ numpy periodictable