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
45
pkgs/development/python-modules/attrs/default.nix
Normal file
45
pkgs/development/python-modules/attrs/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, callPackage
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "attrs";
|
||||
version = "21.4.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-YmuoI0IR25joad92IwoTfExAoS1yRFxF1fW3FvB24v0=";
|
||||
};
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"testout"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
# Install tests as the tests output.
|
||||
mkdir $testout
|
||||
cp -R tests $testout/tests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"attr"
|
||||
];
|
||||
|
||||
# pytest depends on attrs, so we can't do this out-of-the-box.
|
||||
# Instead, we do this as a passthru.tests test.
|
||||
doCheck = false;
|
||||
|
||||
passthru.tests = {
|
||||
pytest = callPackage ./tests.nix { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python attributes without boilerplate";
|
||||
homepage = "https://github.com/hynek/attrs";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
21
pkgs/development/python-modules/attrs/tests.nix
Normal file
21
pkgs/development/python-modules/attrs/tests.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{ buildPythonPackage
|
||||
, pytestCheckHook
|
||||
, attrs
|
||||
, hypothesis
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
pname = "attrs-tests";
|
||||
inherit (attrs) version;
|
||||
|
||||
srcs = attrs.testout;
|
||||
|
||||
dontBuild = true;
|
||||
dontInstall = true;
|
||||
|
||||
checkInputs = [
|
||||
attrs
|
||||
hypothesis
|
||||
pytestCheckHook
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue