1{ stdenv
2, buildPythonPackage
3, fetchFromGitHub
4, isPy3k
5, PyICU
6, python
7}:
8
9buildPythonPackage {
10 pname = "slob";
11 version = "unstable-2016-11-03";
12 disabled = !isPy3k;
13
14 src = fetchFromGitHub {
15 owner = "itkach";
16 repo = "slob";
17 rev = "d1ed71e4778729ecdfc2fe27ed783689a220a6cd";
18 sha256 = "1r510s4r124s121wwdm9qgap6zivlqqxrhxljz8nx0kv0cdyypi5";
19 };
20
21 propagatedBuildInputs = [ PyICU ];
22
23 checkPhase = ''
24 ${python.interpreter} -m unittest slob
25 '';
26
27 meta = with stdenv.lib; {
28 homepage = "https://github.com/itkach/slob/";
29 description = "Reference implementation of the slob (sorted list of blobs) format";
30 license = licenses.gpl3;
31 maintainers = [ maintainers.rycee ];
32 };
33
34}