about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/slob/default.nix
blob: a615192aa7be21b943e2c9c03b0dd5b2d5c09e24 (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
35
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pyicu
, python
}:

buildPythonPackage {
  pname = "slob";
  version = "unstable-2020-06-26";
  format = "setuptools";
  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "itkach";
    repo = "slob";
    rev = "018588b59999c5c0eb42d6517fdb84036f3880cb";
    sha256 = "01195hphjnlcvgykw143rf06s6y955sjc1r825a58vhjx7hj54zh";
  };

  propagatedBuildInputs = [ pyicu ];

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

  pythonImportsCheck = [ "slob" ];

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