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