at 22.05-pre 1.7 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "boltons"; 10 version = "20.2.1"; 11 12 # No tests in PyPi Tarball 13 src = fetchFromGitHub { 14 owner = "mahmoud"; 15 repo = "boltons"; 16 rev = version; 17 sha256 = "0vw0h0z81gfxgjfijqiza92ic0siv9xy65mklgj5d0dzr1k9waw8"; 18 }; 19 20 patches = [ 21 (fetchpatch { 22 url = "https://github.com/mahmoud/boltons/commit/754afddf141ea26956c88c7e13fe5e7ca7942654.patch"; 23 sha256 = "14kcq8pl4pmgcnlnmj1sh1yrksgym0kn0kgz2648g192svqkbpz8"; 24 }) 25 ]; 26 27 checkInputs = [ pytestCheckHook ]; 28 disabledTests = [ 29 # This test is broken without this PR, which has not yet been merged 30 # https://github.com/mahmoud/boltons/pull/283 31 "test_frozendict_ior" 32 ]; 33 34 meta = with lib; { 35 homepage = "https://github.com/mahmoud/boltons"; 36 description = "220+ constructs, recipes, and snippets extending (and relying on nothing but) the Python standard library"; 37 longDescription = '' 38 Boltons is a set of over 220 BSD-licensed, pure-Python utilities 39 in the same spirit as and yet conspicuously missing from the 40 standard library, including: 41 42 - Atomic file saving, bolted on with fileutils 43 - A highly-optimized OrderedMultiDict, in dictutils 44 - Two types of PriorityQueue, in queueutils 45 - Chunked and windowed iteration, in iterutils 46 - Recursive data structure iteration and merging, with iterutils.remap 47 - Exponential backoff functionality, including jitter, through 48 iterutils.backoff 49 - A full-featured TracebackInfo type, for representing stack 50 traces, in tbutils 51 ''; 52 license = licenses.bsd3; 53 maintainers = with maintainers; [ twey ]; 54 }; 55}