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
57
pkgs/development/python-modules/monty/default.nix
Normal file
57
pkgs/development/python-modules/monty/default.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, msgpack
|
||||
, pytestCheckHook
|
||||
, numpy
|
||||
, pandas
|
||||
, pydantic
|
||||
, pymongo
|
||||
, ruamel-yaml
|
||||
, tqdm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "monty";
|
||||
version = "2022.4.26";
|
||||
disabled = pythonOlder "3.5"; # uses type annotations
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "materialsvirtuallab";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-SQku10nzTSuO5ISUDyDKAEoMhBBxPzyLNhoAyrlKH+E=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace tests/test_os.py \
|
||||
--replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
ruamel-yaml
|
||||
tqdm
|
||||
msgpack
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
numpy
|
||||
pandas
|
||||
pydantic
|
||||
pymongo
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Serves as a complement to the Python standard library by providing a suite of tools to solve many common problems";
|
||||
longDescription = "
|
||||
Monty implements supplementary useful functions for Python that are not part of the
|
||||
standard library. Examples include useful utilities like transparent support for zipped files, useful design
|
||||
patterns such as singleton and cached_class, and many more.
|
||||
";
|
||||
homepage = "https://github.com/materialsvirtuallab/monty";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ psyanticy ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue