Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkgs/by-name/sl/slob/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
python3,
}:

python3.pkgs.toPythonApplication python3.pkgs.slob
33 changes: 24 additions & 9 deletions pkgs/development/python-modules/slob/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,51 @@
lib,
buildPythonPackage,
fetchFromGitHub,
isPy3k,

# dependencies
pyicu,

# build-system
setuptools,

# tests
python,
}:

buildPythonPackage {
pname = "slob";
version = "unstable-2020-06-26";
format = "setuptools";
disabled = !isPy3k;
version = "unstable-2024-04-19";
pyproject = true;

src = fetchFromGitHub {
owner = "itkach";
repo = "slob";
rev = "018588b59999c5c0eb42d6517fdb84036f3880cb";
sha256 = "01195hphjnlcvgykw143rf06s6y955sjc1r825a58vhjx7hj54zh";
rev = "c21d695707db7d2fe4ec7ec27a018bb7b0fcc209";
hash = "sha256-dy/EaRLx0LwMklk4h2eL8CsyvWN4swcJNs5cULmh46g=";
};

propagatedBuildInputs = [ pyicu ];
build-system = [
setuptools
];

dependencies = [
pyicu
];

# The tests are part of the same slob.py file, so unittestCheckHook which
# runs python -m unittest with the `discover` argument which doesn't discover
# any tests.
checkPhase = ''
${python.interpreter} -m unittest slob
'';

pythonImportsCheck = [ "slob" ];

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