uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
52
pkgs/development/python-modules/py-multicodec/default.nix
Normal file
52
pkgs/development/python-modules/py-multicodec/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest-runner
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, morphys
|
||||
, six
|
||||
, varint
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "py-multicodec";
|
||||
version = "0.2.1";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "multiformats";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-2aK+bfhqCMqSO+mtrHIfNQmQpQHpwd7yHseI/3O7Sp4=";
|
||||
};
|
||||
|
||||
# Error when not substituting:
|
||||
# Failed: [pytest] section in setup.cfg files is no longer supported, change to [tool:pytest] instead.
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pytest-runner
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
varint
|
||||
six
|
||||
morphys
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "multicodec" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Compact self-describing codecs";
|
||||
homepage = "https://github.com/multiformats/py-multicodec";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ Luflosi ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue