Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / blist / default.nix
blobd4dcb54c5cd14a3d0354584b3ee31ab35ac2bf89
1 { lib
2 , buildPythonPackage
3 , fetchpatch
4 , fetchPypi
5 , isPyPy
6 }:
8 buildPythonPackage rec {
9   pname = "blist";
10   version = "1.3.6";
11   disabled = isPyPy;
13   src = fetchPypi {
14     inherit pname version;
15     sha256 = "1hqz9pqbwx0czvq9bjdqjqh5bwfksva1is0anfazig81n18c84is";
16   };
19   patches = [
20     # Fix compatibility for Python 3.7 https://github.com/DanielStutzbach/blist/pull/78
21     (fetchpatch {
22       url = "https://github.com/DanielStutzbach/blist/commit/2dc1ec28ed68611fcec9ac1c68070c782d6b4b4e.patch";
23       sha256 = "0ma0z6ga80w3wzh3sidwd8ckfbgx4j1y7cc29q6j9ddrvxpf276y";
24     })
25   ];
27   meta = with lib; {
28     homepage = "http://stutzbachenterprises.com/blist/";
29     description = "A list-like type with better asymptotic performance and similar performance on small lists";
30     license = licenses.bsd0;
31   };