Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 36 lines 942 B view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, setuptools_scm, pathpy, nbconvert 3, pytest }: 4 5buildPythonPackage rec { 6 pname = "zetup"; 7 version = "0.2.52"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "9ce97276acf0425499251c5eb700f6a3820adc52859df1e03c6d0f0b88a452cd"; 12 }; 13 14 # Python 3.7 compatibility 15 # See https://github.com/zimmermanncode/zetup/pull/1 16 postPatch = '' 17 substituteInPlace zetup/zetup_config.py \ 18 --replace "'3.6']" "'3.6', '3.7']" 19 ''; 20 21 checkPhase = '' 22 py.test test -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers 23 ''; 24 25 checkInputs = [ pytest pathpy nbconvert ]; 26 propagatedBuildInputs = [ setuptools_scm ]; 27 28 meta = with stdenv.lib; { 29 description = '' 30 Zimmermann's Extensible Tools for Unified Project setups 31 ''; 32 homepage = https://github.com/zimmermanncode/zetup; 33 license = licenses.gpl3Plus; 34 platforms = platforms.unix; 35 }; 36}