nixpkgs/pkgs/development/python-modules/betacode/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
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
2023-12-07 17:46:49 +01:00

20 lines
662 B
Nix

{ fetchPypi, buildPythonPackage, pygtrie, isPy3k, lib, }:
buildPythonPackage rec {
pname = "betacode";
version = "1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0s84kd9vblbjz61q7zchx64a6hmdqb4lillna5ryh0g9ij76g6r5";
};
preBuild = "echo > README.rst";
# setup.py uses a python3 os.path.join
disabled = !isPy3k;
propagatedBuildInputs = [ pygtrie ];
meta = {
homepage = "https://github.com/matgrioni/betacode";
description = "A small python package to flexibly convert from betacode to unicode and back.";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kmein ];
};
}