summaryrefslogtreecommitdiff
path: root/shiton3.nix
blob: 08f23bda50e6eadd3b2ac2e9d5582f20beeed54c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ inputs }:
self: super: rec {
  shiton3 =
    with super;
    python3.override {
      bluezSupport = false;
      x11Support = false;
      #      enableGIL = false;
      stripTests = true;
      enableOptimizations = true;
      packageOverrides = final: prev: {
        requests =
          with prev;
          requests.overrideAttrs (old: rec {
            version = "2.32.3";
            pname = "requests";
            patches = [ ];
            src = fetchPypi {
              inherit pname version;
              hash = "sha256-VTZUF3NOsYJVWQqf+euX6eHaho1MzWQCOZ6vaK8gp2A=";
            };
          });

        websockets =
          with prev;
          websockets.overrideAttrs (old: rec {
            version = "13.0";
            pname = "websockets";
            #patches = [];
            patchPhase = ''
              rm tests/asyncio/test_server.py
              rm tests/asyncio/test_client.py
              rm tests/asyncio/test_connection.py
            '';
            doCheck = false;
            #nativeCheckInputs = [];

            pythonImportsCheck = [ ];
            unittestCheckPhase = [ ];
            src = fetchFromGitHub {
              inherit pname version;
              owner = "aaugustin";
              repo = pname;
              rev = "refs/tags/${version}";
              hash = "sha256-eyNLKXSfC204bF9Zu6uvH7+XZpy3XyvuOSNlwoJTNq8=";
            };
          });

      };
    };
  #  pythonPackages = shiton3.pkgs;
  #  python3Packages = shiton3.pkgs;
}