Merge pull request #101255 from kmein/feature/python-packages

python3Packages.{pygtrie, betacode}: init
This commit is contained in:
Lassulus 2020-11-17 22:22:09 +01:00 committed by GitHub
commit 0749c7d68d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,19 @@
{ fetchPypi, buildPythonPackage, pygtrie, isPy3k, lib, }:
buildPythonPackage rec {
pname = "betacode";
version = "1.0";
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 ];
};
}

View file

@ -0,0 +1,15 @@
{ lib, fetchPypi, buildPythonPackage, ... }:
buildPythonPackage rec {
pname = "pygtrie";
version = "2.3";
src = fetchPypi {
inherit pname version;
sha256 = "00x7q4p9r75zdnw3a8vd0d0w0i5l28w408g5bsfl787yv6b1h9i8";
};
meta = {
homepage = "https://github.com/mina86/pygtrie";
description = "Trie data structure implementation";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ kmein ];
};
}

View file

@ -831,6 +831,8 @@ in {
bespon = callPackage ../development/python-modules/bespon { };
betacode = callPackage ../development/python-modules/betacode { };
betamax = callPackage ../development/python-modules/betamax { };
betamax-matchers = callPackage ../development/python-modules/betamax-matchers { };
@ -5102,6 +5104,8 @@ in {
pygtksourceview = callPackage ../development/python-modules/pygtksourceview { inherit (pkgs) pkgconfig; };
pygtrie = callPackage ../development/python-modules/pygtrie { };
pyhamcrest = if isPy3k then
callPackage ../development/python-modules/pyhamcrest { }
else