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
73
pkgs/development/python-modules/apptools/default.nix
Normal file
73
pkgs/development/python-modules/apptools/default.nix
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, configobj
|
||||
, fetchpatch
|
||||
, fetchPypi
|
||||
, importlib-resources
|
||||
, pandas
|
||||
, pytestCheckHook
|
||||
, pythonAtLeast
|
||||
, pythonOlder
|
||||
, tables
|
||||
, traits
|
||||
, traitsui
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "apptools";
|
||||
version = "5.1.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "12x5lcs1cllpybz7f0i1lcwvmqsaa5n818wb2165lj049wqxx4yh";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# python39: importlib_resources -> importlib.resources. This patch will be included
|
||||
# in the next release after 5.1.0.
|
||||
(fetchpatch {
|
||||
url = "https://github.com/enthought/apptools/commit/0ae4f52f19a8c0ca9d7926e17c7de949097f24b4.patch";
|
||||
sha256 = "165aiwjisr5c3lasg7xblcha7y1y5bq23vi3g9gc80c24bzwcbsw";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
configobj
|
||||
traits
|
||||
traitsui
|
||||
] ++ lib.optionals (pythonOlder "3.9") [
|
||||
importlib-resources
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
tables
|
||||
pandas
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMP
|
||||
'';
|
||||
|
||||
disabledTestPaths = lib.optionals (pythonAtLeast "3.10") [
|
||||
# https://github.com/enthought/apptools/issues/303
|
||||
"apptools/io/h5/tests/test_dict_node.py"
|
||||
"apptools/io/h5/tests/test_file.py"
|
||||
"apptools/io/h5/tests/test_table_node.py"
|
||||
];
|
||||
|
||||
|
||||
pythonImportsCheck = [
|
||||
"apptools"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Set of packages that Enthought has found useful in creating a number of applications";
|
||||
homepage = "https://github.com/enthought/apptools";
|
||||
license = licenses.bsdOriginal;
|
||||
maintainers = with maintainers; [ knedlsepp ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue