depot/third_party/nixpkgs/pkgs/development/python-modules/signalslot/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

54 lines
984 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
contexter,
eventlet,
mock,
pytest-xdist,
pytestCheckHook,
six,
}:
buildPythonPackage rec {
pname = "signalslot";
version = "0.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-ZNodibNGfCOa8xd3myN+cRa28rY3/ynNUia1kwjTIOU=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "--pep8 --cov" "" \
--replace "--cov-report html" ""
'';
propagatedBuildInputs = [
contexter
six
];
pythonRemoveDeps = [
"weakrefmethod" # needed until https://github.com/Numergy/signalslot/pull/17
];
nativeCheckInputs = [
eventlet
mock
pytest-xdist
pytestCheckHook
];
pythonImportsCheck = [ "signalslot" ];
meta = with lib; {
description = "Simple Signal/Slot implementation";
homepage = "https://github.com/numergy/signalslot";
license = licenses.mit;
maintainers = with maintainers; [ myaats ];
};
}