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

37 lines
942 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
, setuptools_scm, pathpy, nbconvert
2019-07-13 09:21:00 +00:00
, pytest }:
buildPythonPackage rec {
pname = "zetup";
2019-10-16 09:43:17 +00:00
version = "0.2.64";
src = fetchPypi {
inherit pname version;
2019-10-16 09:43:17 +00:00
sha256 = "b8a9bdcfa4b705d72b55b218658bc9403c157db7b57a14158253c98d03ab713d";
};
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 = ''
2019-07-13 09:21:00 +00:00
py.test test -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers
'';
2019-07-13 09:21:00 +00:00
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;
};
}