nixpkgs-suyu/pkgs/development/python-modules/foolscap/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

58 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, mock
, pyopenssl
, pytestCheckHook
, service-identity
, twisted
}:
buildPythonPackage rec {
pname = "foolscap";
version = "21.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-6dGFU4YNk1joXXZi2c2L84JtUbTs1ICgXfv0/EU2P4Q=";
};
patches = [
(fetchpatch {
name = "fix-tests-with-twisted-22.10.0.patch";
url = "https://github.com/warner/foolscap/commit/c04202eb5d4cf052e650ec2985ea6037605fd79e.patch";
hash = "sha256-RldDc18n3WYHdYg0ZmM8PBffIuiGa1NIfdoHs3mEEfc=";
})
];
propagatedBuildInputs = [
mock
twisted
pyopenssl
service-identity
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTestPaths = [
# Not all dependencies are present
"src/foolscap/test/test_connection.py"
];
pythonImportsCheck = [ "foolscap" ];
meta = with lib; {
description = "RPC protocol for Python that follows the distributed object-capability model";
longDescription = ''
"Foolscap" is the name for the next-generation RPC protocol, intended to
replace Perspective Broker (part of Twisted). Foolscap is a protocol to
implement a distributed object-capabilities model in Python.
'';
homepage = "https://github.com/warner/foolscap";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}