2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 17:26:07 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, PyICU
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
buildPythonPackage {
|
2020-03-29 10:34:50 +00:00
|
|
|
pname = "slob";
|
2021-04-17 16:31:10 +00:00
|
|
|
version = "unstable-2020-06-26";
|
2018-10-26 17:26:07 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "itkach";
|
|
|
|
repo = "slob";
|
2021-04-17 16:31:10 +00:00
|
|
|
rev = "018588b59999c5c0eb42d6517fdb84036f3880cb";
|
|
|
|
sha256 = "01195hphjnlcvgykw143rf06s6y955sjc1r825a58vhjx7hj54zh";
|
2018-10-26 17:26:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ PyICU ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest slob
|
|
|
|
'';
|
|
|
|
|
2021-04-17 16:31:10 +00:00
|
|
|
pythonImportsCheck = [ "slob" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/itkach/slob/";
|
2018-10-26 17:26:07 +00:00
|
|
|
description = "Reference implementation of the slob (sorted list of blobs) format";
|
2021-04-17 16:31:10 +00:00
|
|
|
license = licenses.gpl3Only;
|
2018-10-26 17:26:07 +00:00
|
|
|
};
|
|
|
|
}
|