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
51
pkgs/development/python-modules/cbor2/default.nix
Normal file
51
pkgs/development/python-modules/cbor2/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cbor2";
|
||||
version = "5.4.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-Yrhjxe5s7UAyr+lI88FITzdVUJldO4SYFFI3/ijlRsI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov" ""
|
||||
'';
|
||||
|
||||
# https://github.com/agronholm/cbor2/issues/99
|
||||
disabledTests = lib.optionals stdenv.is32bit [
|
||||
"test_huge_truncated_bytes"
|
||||
"test_huge_truncated_string"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cbor2"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python CBOR (de)serializer with extensive tag support";
|
||||
homepage = "https://github.com/agronholm/cbor2";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ taneb ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue