depot/third_party/nixpkgs/pkgs/development/python-modules/slob/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

34 lines
709 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pyicu
, python
}:
buildPythonPackage {
pname = "slob";
version = "unstable-2020-06-26";
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;
};
}