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
56
pkgs/development/python-modules/warlock/default.nix
Normal file
56
pkgs/development/python-modules/warlock/default.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, jsonpatch
|
||||
, jsonschema
|
||||
, six
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "warlock";
|
||||
version = "1.3.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bcwaldon";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-59V4KOwjs/vhA3F3E0j3p5L4JnKPgcExN+mgSWs0Cn0=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "jsonschema>=0.7,<4" "jsonschema"
|
||||
sed -i "/--cov/d" pytest.ini
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jsonpatch
|
||||
jsonschema
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# https://github.com/bcwaldon/warlock/issues/64
|
||||
"test_recursive_models"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"warlock"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python object model built on JSON schema and JSON patch";
|
||||
homepage = "https://github.com/bcwaldon/warlock";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue