Files
nixpkgs/pkgs/development/python-modules/lexid/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

38 lines
912 B
Nix

{
lib,
pythonOlder,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
click,
}:
buildPythonPackage rec {
pname = "lexid";
version = "2021.1006";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "509a3a4cc926d3dbf22b203b18a4c66c25e6473fb7c0e0d30374533ac28bafe5";
};
prePatch = ''
# Disable lib3to6, since we're only building this on 3.6+ anyway.
substituteInPlace setup.py \
--replace 'if any(arg.startswith("bdist") for arg in sys.argv):' 'if False:'
'';
propagatedBuildInputs = [ click ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Micro library to increment lexically ordered numerical ids";
mainProgram = "lexid_incr";
homepage = "https://pypi.org/project/lexid/";
license = licenses.mit;
maintainers = with maintainers; [ kfollesdal ];
};
}