forked from mirrors/nixpkgs
37 lines
942 B
Nix
37 lines
942 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, setuptools_scm, pathpy, nbconvert
|
|
, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zetup";
|
|
version = "0.2.52";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "9ce97276acf0425499251c5eb700f6a3820adc52859df1e03c6d0f0b88a452cd";
|
|
};
|
|
|
|
# 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 -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers
|
|
'';
|
|
|
|
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;
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|