mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-10 18:58:14 +00:00
33 lines
791 B
Nix
33 lines
791 B
Nix
{
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
setuptools,
|
|
pygtrie,
|
|
isPy3k,
|
|
lib,
|
|
}:
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "betacode";
|
|
version = "1.0";
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-JZtnjozpAehzUZbSSMnCrUKjiOmQ/YOD+XLRtVObBGk=";
|
|
};
|
|
build-system = [ setuptools ];
|
|
preBuild = "echo > README.rst";
|
|
# setup.py uses a python3 os.path.join
|
|
disabled = !isPy3k;
|
|
dependencies = [ pygtrie ];
|
|
pythonImportsCheck = [ "betacode" ];
|
|
meta = {
|
|
homepage = "https://github.com/matgrioni/betacode";
|
|
description = "Small python package to flexibly convert from betacode to unicode and back";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ kmein ];
|
|
};
|
|
})
|