1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6}:
7
8buildPythonPackage rec {
9 pname = "bunch";
10 version = "unstable-2017-11-21";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 # Use a fork as upstream is dead
16 src = fetchFromGitHub {
17 owner = "olivecoder";
18 repo = pname;
19 rev = "71ac9d5c712becd4c502ab3099203731a0f1122e";
20 hash = "sha256-XOgzJkcIqkAJFsKAyt2jSEIxcc0h2gFC15xy5kAs+7s=";
21 };
22
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace "rU" "r"
26 '';
27
28 # No real tests available
29 doCheck = false;
30
31 pythonImportsCheck = [ "bunch" ];
32
33 meta = with lib; {
34 description = "Python dictionary that provides attribute-style access";
35 homepage = "https://github.com/dsc/bunch";
36 license = licenses.mit;
37 maintainers = [ ];
38 };
39}