nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, plumbum
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "rpyc";
11 version = "5.1.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "tomerfiliba";
18 repo = pname;
19 rev = version;
20 sha256 = "sha256-Xeot4QEgTZjvdO0ydmKjccp6zwC93Yp/HkRlSgyDf8k=";
21 };
22
23 propagatedBuildInputs = [
24 plumbum
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 disabledTests = [
32 # Disable tests that requires network access
33 "test_api"
34 "test_pruning"
35 "test_rpyc"
36 # Test is outdated
37 # ssl.SSLError: [SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:997)
38 "test_ssl_conenction"
39 ];
40
41 pythonImportsCheck = [
42 "rpyc"
43 ];
44
45 meta = with lib; {
46 description = "Remote Python Call (RPyC), a transparent and symmetric RPC library";
47 homepage = "https://rpyc.readthedocs.org";
48 license = with licenses; [ mit ];
49 maintainers = with maintainers; [ fab ];
50 };
51}