Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / bunch / default.nix
blob39c858ebb676162418d304b1b10ea9f1565895c0
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 }:
7 buildPythonPackage rec {
8   pname = "bunch";
9   version = "unstable-2017-11-21";
10   format = "setuptools";
12   disabled = pythonOlder "3.7";
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   };
22   postPatch = ''
23     substituteInPlace setup.py \
24       --replace "rU" "r"
25   '';
27   # No real tests available
28   doCheck = false;
30   pythonImportsCheck = [
31     "bunch"
32   ];
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   };