mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 17:04:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
47 lines
938 B
Nix
47 lines
938 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, lib
|
|
, morphys
|
|
, pytest
|
|
, pytest-runner
|
|
, python-baseconv
|
|
, six
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "py-multibase";
|
|
version = "1.0.3";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version ;
|
|
sha256 = "d28a20efcbb61eec28f55827a0bf329c7cea80fffd933aecaea6ae8431267fe4";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg --replace "[pytest]" ""
|
|
substituteInPlace setup.cfg --replace "python_classes = *TestCase" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
pytest-runner
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
morphys
|
|
six
|
|
python-baseconv
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|