Skip to content

Commit

Permalink
python38Packages.zetup: fix build
Browse files Browse the repository at this point in the history
Currently fails to build on python 3.8 due to an overly restrictive version bound.

ZHF: NixOS#80379

CC @NixOS/nixos-release-managers

(cherry picked from commit a65e052)
  • Loading branch information
bhipple authored and stigok committed Jun 12, 2020
1 parent 0b7a540 commit 1d5c89c
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions pkgs/development/python-modules/zetup/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchPypi
{ lib, buildPythonPackage, fetchPypi
, setuptools_scm, pathpy, nbconvert
, pytest }:

Expand All @@ -11,11 +11,10 @@ buildPythonPackage rec {
sha256 = "b8a9bdcfa4b705d72b55b218658bc9403c157db7b57a14158253c98d03ab713d";
};

# Python 3.7 compatibility
# See https://github.com/zimmermanncode/zetup/pull/1
# Python 3.8 compatibility
postPatch = ''
substituteInPlace zetup/zetup_config.py \
--replace "'3.6']" "'3.6', '3.7']"
--replace "'3.7']" "'3.7', '3.8']"
'';

checkPhase = ''
Expand All @@ -25,11 +24,9 @@ buildPythonPackage rec {
checkInputs = [ pytest pathpy nbconvert ];
propagatedBuildInputs = [ setuptools_scm ];

meta = with stdenv.lib; {
description = ''
Zimmermann's Extensible Tools for Unified Project setups
'';
homepage = https://github.com/zimmermanncode/zetup;
meta = with lib; {
description = "Zimmermann's Extensible Tools for Unified Project setups";
homepage = "https://github.com/zimmermanncode/zetup";
license = licenses.gpl3Plus;
platforms = platforms.unix;
};
Expand Down

0 comments on commit 1d5c89c

Please sign in to comment.