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