mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
36 lines
734 B
Nix
36 lines
734 B
Nix
{ 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;
|
|
};
|
|
}
|