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
60
pkgs/development/python-modules/pydeps/default.nix
Normal file
60
pkgs/development/python-modules/pydeps/default.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, graphviz
|
||||
, stdlib-list
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pydeps";
|
||||
version = "1.10.18";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thebjorn";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-AKpaGXUaKCVk1C8GqtWayZEU2xbz3eqbUenjZCtsAUY=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
graphviz
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
graphviz
|
||||
stdlib-list
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
pyyaml
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Path is hard-coded
|
||||
substituteInPlace pydeps/dot.py \
|
||||
--replace "dot -Gstart=1" "${lib.makeBinPath [ graphviz ]}/dot -Gstart=1"
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Would require to have additional modules available
|
||||
"test_find_package_names"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pydeps"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module dependency visualization";
|
||||
homepage = "https://github.com/thebjorn/pydeps";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue