depot/third_party/nixpkgs/pkgs/development/python-modules/crossandra/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

39 lines
963 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
result,
mypy
}:
buildPythonPackage rec {
pname = "crossandra";
version = "2.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "trag1c";
repo = "crossandra";
rev = "refs/tags/${version}";
hash = "sha256-/JhrjXRH7Rs2bUil9HRneBC9wlVYEyfwivjzb+eyRv8=";
};
build-system = [ setuptools mypy ];
dependencies = [ result ];
pythonImportsCheck = [ "crossandra" ];
prePatch = ''
# pythonRelaxDepsHook did not work
substituteInPlace pyproject.toml \
--replace-fail "result ~= 0.9.0" "result >= 0.9.0"
'';
meta = {
changelog = "https://github.com/trag1c/crossandra/blob/${src.rev}/CHANGELOG.md";
description = "Fast and simple enum/regex-based tokenizer with decent configurability";
license = lib.licenses.mit;
homepage = "https://trag1c.github.io/crossandra";
maintainers = with lib.maintainers; [ sigmanificient ];
};
}