Merge pull request #84973 from glittershark/init-aadict

pythonPackages.{aadict,,globre,pxml}: init at 0.2.3, 0.1.5, 0.2.13 respectively
This commit is contained in:
Ryan Mulligan 2020-07-13 20:35:48 -07:00 committed by GitHub
commit 6faba433b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 108 additions and 0 deletions

View file

@ -3024,6 +3024,16 @@
githubId = 615606;
name = "Glenn Searby";
};
glittershark = {
name = "Griffin Smith";
email = "root@gws.fyi";
github = "glittershark";
githubId = 1481027;
keys = [{
longkeyid = "rsa2048/0x44EF5B5E861C09A7";
fingerprint = "0F11 A989 879E 8BBB FDC1 E236 44EF 5B5E 861C 09A7";
}];
};
gloaming = {
email = "ch9871@gmail.com";
github = "gloaming";

View file

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, six
, nose
, coverage
}:
buildPythonPackage rec {
pname = "aadict";
version = "0.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "013pn9ii6mkql6khgdvsd1gi7zmya418fhclm5fp7dfvann2hwx7";
};
propagatedBuildInputs = [ six ];
checkInputs = [ nose coverage ];
meta = with stdenv.lib; {
homepage = "https://github.com/metagriffin/aadict";
description = "An auto-attribute dict (and a couple of other useful dict functions).";
maintainers = with maintainers; [ glittershark ];
license = licenses.gpl3;
};
}

View file

@ -0,0 +1,28 @@
{ stdenv
, pythonAtLeast
, buildPythonPackage
, fetchPypi
, nose
, coverage
}:
buildPythonPackage rec {
pname = "globre";
version = "0.1.5";
# https://github.com/metagriffin/globre/issues/7
disabled = pythonAtLeast "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "1qhjpg0722871dm5m7mmldf6c7mx58fbdvk1ix5i3s9py82448gf";
};
checkInputs = [ nose coverage ];
meta = with stdenv.lib; {
homepage = "https://github.com/metagriffin/globre";
description = "A python glob-like regular expression generation library.";
maintainers = with maintainers; [ glittershark ];
license = licenses.gpl3;
};
}

View file

@ -0,0 +1,37 @@
{ stdenv
, pythonAtLeast
, isPy27
, buildPythonPackage
, fetchPypi
, blessings
, six
, nose
, coverage
}:
buildPythonPackage rec {
pname = "pxml";
version = "0.2.13";
disabled = pythonAtLeast "3.8";
src = fetchPypi {
inherit pname version;
sha256 = "0c9zzfv6ciyf9qm7556wil45xxgykg1cj8isp1b88gimwcb2hxg4";
};
propagatedBuildInputs = [ blessings six ];
checkInputs = [ nose coverage ];
# test_prefixedWhitespace fails due to a python3 StringIO issue requiring
# bytes rather than str
checkPhase = ''
nosetests -e 'test_prefixedWhitespace'
'';
meta = with stdenv.lib; {
homepage = "https://github.com/metagriffin/pxml";
description = ''A python library and command-line tool to "prettify" and colorize XML.'';
maintainers = with maintainers; [ glittershark ];
license = licenses.gpl3;
};
}

View file

@ -150,6 +150,8 @@ in {
pynamodb = callPackage ../development/python-modules/pynamodb { };
aadict = callPackage ../development/python-modules/aadict { };
absl-py = callPackage ../development/python-modules/absl-py { };
adb-homeassistant = callPackage ../development/python-modules/adb-homeassistant { };
@ -788,6 +790,8 @@ in {
glob2 = callPackage ../development/python-modules/glob2 { };
globre = callPackage ../development/python-modules/globre { };
glom = callPackage ../development/python-modules/glom { };
gdcm = disabledIf isPy27 (toPythonModule (pkgs.gdcm.override {
@ -3473,6 +3477,8 @@ in {
inherit (pkgs) lzo;
};
pxml = callPackage ../development/python-modules/pxml { };
junos-eznc = callPackage ../development/python-modules/junos-eznc {};
raven = callPackage ../development/python-modules/raven { };