ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pprintpp / default.nix
blob5b07613f098aca2eba907db9ece33d7c8d337439
1 { lib, fetchpatch, buildPythonPackage, fetchPypi, python, nose, parameterized }:
3 buildPythonPackage rec {
4   pname = "pprintpp";
5   version = "0.4.0";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "00v4pkyiqc0y9qjnp3br58a4k5zwqdrjjxbcsv39vx67w84630pa";
10   };
12   patches = [
13     (fetchpatch {
14       url = "https://github.com/wolever/pprintpp/commit/873217674cc824b4c1cfdad4867c560c60e8d806.patch";
15       sha256 = "0rqxzxawr83215s84mfzh1gnjwjm2xv399ywwcl4q7h395av5vb3";
16     })
17   ];
19   checkInputs = [ nose parameterized ];
20   checkPhase = ''
21     ${python.interpreter} test.py
22   '';
24   meta = with lib; {
25     homepage = "https://github.com/wolever/pprintpp";
26     description = "A drop-in replacement for pprint that's actually pretty";
27     license = licenses.bsd2;
28     maintainers = with maintainers; [ jakewaksbaum ];
29   };