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