depot/third_party/nixpkgs/pkgs/development/python-modules/signalslot/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

58 lines
1 KiB
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, pythonRelaxDepsHook
, 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" ""
'';
nativeBuildInputs = [
pythonRelaxDepsHook
];
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 ];
};
}