Merge pull request #203980 from tjni/weakrefmethod
This commit is contained in:
commit
f2e27602e4
4 changed files with 26 additions and 41 deletions
|
@ -2,43 +2,53 @@
|
|||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonRelaxDepsHook
|
||||
, contexter
|
||||
, eventlet
|
||||
, mock
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
, six
|
||||
, weakrefmethod
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "signalslot";
|
||||
version = "0.1.2";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-Z26RPNau+4719e82jMhb2LyIR6EvsANI8r3+eKuw494=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
contexter
|
||||
six
|
||||
weakrefmethod
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
eventlet
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "signalslot" ];
|
||||
|
||||
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
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
eventlet
|
||||
mock
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "signalslot" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple Signal/Slot implementation";
|
||||
homepage = "https://github.com/numergy/signalslot";
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
{ stdenv, lib, buildPythonPackage, fetchPypi, unittest2 }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "weakrefmethod";
|
||||
version = "1.0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-N7wfu1V1rPghctTre2/EQS131aHXDf8sH4pFdDAc2mY=";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
unittest2
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "weakrefmethod" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A WeakMethod class for storing bound methods using weak references";
|
||||
homepage = "https://github.com/twang817/weakrefmethod";
|
||||
license = licenses.psfl;
|
||||
maintainers = with maintainers; [ myaats ];
|
||||
};
|
||||
}
|
|
@ -216,6 +216,7 @@ mapAliases ({
|
|||
types-paramiko = throw "types-paramiko has been removed because it was unused."; # added 2022-05-30
|
||||
Wand = wand; # added 2022-11-13
|
||||
WazeRouteCalculator = wazeroutecalculator; # added 2021-09-29
|
||||
weakrefmethod = throw "weakrefmethod was removed since it's not needed in Python >= 3.4"; # added 2022-12-01
|
||||
webapp2 = throw "webapp2 is unmaintained since 2012"; # added 2022-05-29
|
||||
websocket_client = websocket-client; # added 2021-06-15
|
||||
xenomapper = throw "xenomapper was moved to pkgs.xenomapper"; # added 2021-12-31
|
||||
|
|
|
@ -11893,8 +11893,6 @@ self: super: with self; {
|
|||
|
||||
wcwidth = callPackage ../development/python-modules/wcwidth { };
|
||||
|
||||
weakrefmethod = callPackage ../development/python-modules/weakrefmethod { };
|
||||
|
||||
weasyprint = callPackage ../development/python-modules/weasyprint { };
|
||||
|
||||
web3 = callPackage ../development/python-modules/web3 { };
|
||||
|
|
Loading…
Reference in a new issue