depot/third_party/nixpkgs/pkgs/development/python-modules/zetup/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
865 B
Nix

{ lib, buildPythonPackage, fetchPypi
, setuptools_scm, pathpy, nbconvert
, pytest }:
buildPythonPackage rec {
pname = "zetup";
version = "0.2.64";
src = fetchPypi {
inherit pname version;
sha256 = "b8a9bdcfa4b705d72b55b218658bc9403c157db7b57a14158253c98d03ab713d";
};
# Python 3.8 compatibility
postPatch = ''
substituteInPlace zetup/zetup_config.py \
--replace "'3.7']" "'3.7', '3.8']"
'';
checkPhase = ''
py.test test -k "not TestObject" --deselect=test/test_zetup_config.py::test_classifiers
'';
checkInputs = [ pytest pathpy nbconvert ];
propagatedBuildInputs = [ setuptools_scm ];
meta = with lib; {
description = "Zimmermann's Extensible Tools for Unified Project setups";
homepage = "https://github.com/zimmermanncode/zetup";
license = licenses.gpl3Plus;
platforms = platforms.unix;
};
}