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
5 changed files with 108 additions and 0 deletions

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;
};
}