1{ buildPythonPackage
2, fetchPypi
3, isPy27
4, lib
5, morphys
6, pytest
7, pytestrunner
8, python-baseconv
9, six
10}:
11buildPythonPackage rec {
12 pname = "py-multibase";
13 version = "1.0.1";
14 disabled = isPy27;
15
16 src = fetchPypi {
17 inherit pname version ;
18 sha256 = "6ed706ea321b487ba82e4172a9c82d61dacd675c865f576a937a94bca1a23443";
19 };
20
21 postPatch = ''
22 substituteInPlace setup.cfg --replace "[pytest]" ""
23 substituteInPlace setup.cfg --replace "python_classes = *TestCase" ""
24 '';
25
26 nativeBuildInputs = [
27 pytestrunner
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}