nixpkgs/pkgs/development/python-modules/leather/default.nix
Andrew Marshall 956cf5f612 python3Packages.leather: fix build
Broken in 2f4ea0c6df.

Upstream changed from nose to pytest. Previously, the
setuptoolsCheckHook would run and execute the `./test.py` file, but that
is not part of upstream’s build process and doesn’t work. Including
pytestCheckHook means that does not run—just pytest.
2024-03-22 09:38:57 -04:00

36 lines
630 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, six
, cssselect
, lxml
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "leather";
version = "0.4.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-+WS+wghvMVOmwW5wfyDLcY+BH1evEWB19MD0gFxgi5U=";
};
propagatedBuildInputs = [ six ];
nativeCheckInputs = [
cssselect
lxml
pytestCheckHook
];
meta = with lib; {
homepage = "http://leather.rtfd.io";
description = "Python charting library";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ vrthra ];
};
}