1{ buildPythonPackage
2, fetchPypi
3, isPy27
4, lib
5, morphys
6, pytest
7, pytest-runner
8, python-baseconv
9, six
10}:
11buildPythonPackage rec {
12 pname = "py-multibase";
13 version = "1.0.3";
14 disabled = isPy27;
15
16 src = fetchPypi {
17 inherit pname version ;
18 sha256 = "d28a20efcbb61eec28f55827a0bf329c7cea80fffd933aecaea6ae8431267fe4";
19 };
20
21 postPatch = ''
22 substituteInPlace setup.cfg --replace "[pytest]" ""
23 substituteInPlace setup.cfg --replace "python_classes = *TestCase" ""
24 '';
25
26 nativeBuildInputs = [
27 pytest-runner
28 ];
29
30 propagatedBuildInputs = [
31 morphys
32 six
33 python-baseconv
34 ];
35
36 checkInputs = [
37 pytest
38 ];
39
40 meta = with lib; {
41 description = "Multibase is a protocol for distinguishing base encodings and other simple string encodings";
42 homepage = "https://github.com/multiformats/py-multibase";
43 license = licenses.mit;
44 maintainers = with maintainers; [ rakesh4g ];
45 };
46}