summary refs log tree commit diff
path: root/pkgs/development/python-modules/slob/default.nix
blob: a7520c62a62c91e245c41d8a80a19fb3e79c132b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, stdenv
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, PyICU
, python
}:

buildPythonPackage {
  pname = "slob";
  version = "unstable-2016-11-03";
  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "itkach";
    repo = "slob";
    rev = "d1ed71e4778729ecdfc2fe27ed783689a220a6cd";
    sha256 = "1r510s4r124s121wwdm9qgap6zivlqqxrhxljz8nx0kv0cdyypi5";
  };

  propagatedBuildInputs = [ PyICU ];

  checkPhase = ''
    ${python.interpreter} -m unittest slob
  '';

  meta = with lib; {
    homepage = "https://github.com/itkach/slob/";
    description = "Reference implementation of the slob (sorted list of blobs) format";
    license = licenses.gpl3;
    maintainers = [ maintainers.rycee ];
  };

}