2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, PyICU
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "slob";
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "unstable-2020-06-26";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "itkach";
|
|
|
|
repo = "slob";
|
2021-04-22 02:08:21 +00:00
|
|
|
rev = "018588b59999c5c0eb42d6517fdb84036f3880cb";
|
|
|
|
sha256 = "01195hphjnlcvgykw143rf06s6y955sjc1r825a58vhjx7hj54zh";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ PyICU ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest slob
|
|
|
|
'';
|
|
|
|
|
2021-04-22 02:08:21 +00:00
|
|
|
pythonImportsCheck = [ "slob" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/itkach/slob/";
|
|
|
|
description = "Reference implementation of the slob (sorted list of blobs) format";
|
2021-04-22 02:08:21 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|