nixpkgs/pkgs/development/python-modules/zetup/default.nix

37 lines
871 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
, setuptools_scm, pathpy, nbconvert
2019-03-15 20:32:03 +00:00
, pytest_3 }:
buildPythonPackage rec {
pname = "zetup";
2018-10-06 10:56:21 +00:00
version = "0.2.45";
src = fetchPypi {
inherit pname version;
2018-10-06 10:56:21 +00:00
sha256 = "f1cde33d0ef3bedaf697e432201fa86da698dadd3445c0efd2a114753853c675";
};
2019-03-15 20:32:03 +00:00
# Python 3.7 compatibility
# See https://github.com/zimmermanncode/zetup/pull/1
postPatch = ''
substituteInPlace zetup/zetup_config.py \
--replace "'3.6']" "'3.6', '3.7']"
'';
checkPhase = ''
py.test test
'';
2019-03-15 20:32:03 +00:00
checkInputs = [ pytest_3 pathpy nbconvert ];
propagatedBuildInputs = [ setuptools_scm ];
meta = with stdenv.lib; {
description = ''
Zimmermann's Extensible Tools for Unified Project setups
'';
homepage = https://github.com/zimmermanncode/zetup;
license = licenses.gpl3Plus;
platforms = platforms.unix;
};
}