Merge pull request #37462 from Twey/python-bitmath

bitmath: init at 1.3.1.2
This commit is contained in:
Robert Schütz 2018-04-10 14:13:52 +02:00 committed by GitHub
commit 1bf566eb76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, progressbar231, progressbar33, mock }:
buildPythonPackage rec {
pname = "bitmath";
version = "1.3.1.2";
src = fetchPypi {
inherit pname version;
sha256 = "1k8d1wmxqjc8cqzaixpxf45k6dl1kqhblr0g4wyjl0qa18q8wasd";
};
checkInputs = [ (if isPy3k then progressbar33 else progressbar231) mock ];
meta = with stdenv.lib; {
description = "Module for representing and manipulating file sizes with different prefix";
homepage = https://github.com/tbielawa/bitmath;
license = licenses.mit;
maintainers = with maintainers; [ twey ];
};
}

View file

@ -0,0 +1,23 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k }:
buildPythonPackage rec {
pname = "progressbar231";
version = "2.3.1";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0j0ifxk87xz3wkyacxaiqygghn27wwz6y5pj9k8j2yq7n33fbdam";
};
# no tests implemented
doCheck = false;
meta = with stdenv.lib; {
homepage = https://pypi.python.org/pypi/progressbar231;
description = "Text progressbar library for python";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ twey ];
};
}

View file

@ -0,0 +1,21 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "progressbar33";
version = "2.4";
src = fetchPypi {
inherit pname version;
sha256 = "1zvf6zs5hzrc03p9nfs4p16vhilqikycvv1yk0pxn8s07fdhvzji";
};
# no tests implemented
doCheck = false;
meta = with stdenv.lib; {
homepage = https://pypi.python.org/pypi/progressbar33;
description = "Text progressbar library for python";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ twey ];
};
}

View file

@ -1003,6 +1003,8 @@ in {
binwalk = self.binwalk_fun { };
binwalk-full = self.binwalk_fun { visualizationSupport = true; pyqtgraph = self.pyqtgraph; };
bitmath = callPackage ../development/python-modules/bitmath { };
caldavclientlibrary-asynk = buildPythonPackage rec {
version = "asynkdev";
name = "caldavclientlibrary-asynk-${version}";
@ -11480,6 +11482,10 @@ in {
progressbar2 = callPackage ../development/python-modules/progressbar2 { };
progressbar231 = callPackage ../development/python-modules/progressbar231 { };
progressbar33 = callPackage ../development/python-modules/progressbar33 { };
ldap = callPackage ../development/python-modules/ldap {
inherit (pkgs) openldap cyrus_sasl;
};