diff options
author | Rakesh Gupta <rakesh.gupta@formbay.com.au> | 2020-04-14 10:31:37 +0530 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-04-14 00:12:52 -0700 |
commit | 90c140696438f3e8a7f9d726f25115d535f81872 (patch) | |
tree | 73cf135131465ed57b020aa97db418f1aec6c97c /pkgs/development/python-modules/py-multibase | |
parent | ef8ea1e55629e65b2ab3609b332b221075e1aab1 (diff) |
pythonPackages.py-multibase: init at 1.0.1
Diffstat (limited to 'pkgs/development/python-modules/py-multibase')
-rw-r--r-- | pkgs/development/python-modules/py-multibase/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/py-multibase/default.nix b/pkgs/development/python-modules/py-multibase/default.nix new file mode 100644 index 0000000000000..59876b473a913 --- /dev/null +++ b/pkgs/development/python-modules/py-multibase/default.nix @@ -0,0 +1,46 @@ +{ buildPythonPackage +, fetchPypi +, isPy27 +, lib +, morphys +, pytest +, pytestrunner +, python-baseconv +, six +}: +buildPythonPackage rec { + pname = "py-multibase"; + version = "1.0.1"; + disabled = isPy27; + + src = fetchPypi { + inherit pname version ; + sha256 = "6ed706ea321b487ba82e4172a9c82d61dacd675c865f576a937a94bca1a23443"; + }; + + postPatch = '' + substituteInPlace setup.cfg --replace "[pytest]" "" + substituteInPlace setup.cfg --replace "python_classes = *TestCase" "" + ''; + + nativeBuildInputs = [ + pytestrunner + ]; + + propagatedBuildInputs = [ + morphys + six + python-baseconv + ]; + + checkInputs = [ + pytest + ]; + + meta = with lib; { + description = "Multibase is a protocol for distinguishing base encodings and other simple string encodings"; + homepage = "https://github.com/multiformats/py-multibase"; + license = licenses.mit; + maintainers = with maintainers; [ rakesh4g ]; + }; +} \ No newline at end of file |