about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-07-02 21:18:42 +0200
committerJörg Thalheim <joerg@thalheim.io>2021-07-02 21:19:24 +0200
commite1376754535c412ca81448875b38ec4686449661 (patch)
tree4cff9ce41b8d8cea00e7d45d2e9a1f3e402f8c8d
parent3895ec33adaf692e50eecd2d347c55f81ab7da10 (diff)
python3.pkgs.flask-compress: fix version metadata
-rw-r--r--pkgs/development/python-modules/flask-compress/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/flask-compress/default.nix b/pkgs/development/python-modules/flask-compress/default.nix
index 5d8359885bd1a..fff330946d168 100644
--- a/pkgs/development/python-modules/flask-compress/default.nix
+++ b/pkgs/development/python-modules/flask-compress/default.nix
@@ -11,6 +11,10 @@ buildPythonPackage rec {
     sha256 = "28352387efbbe772cfb307570019f81957a13ff718d994a9125fa705efb73680";
   };
 
+  postPatch = ''
+    sed -i -e 's/use_scm_version=.*/version="${version}",/' setup.py
+  '';
+
   propagatedBuildInputs = [ flask brotli ];
 
   meta = with lib; {