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
49
pkgs/development/python-modules/bibtexparser/default.nix
Normal file
49
pkgs/development/python-modules/bibtexparser/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, future
|
||||
, pyparsing
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bibtexparser";
|
||||
version = "1.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "sciunto-org";
|
||||
repo = "python-${pname}";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-M9fDI28Yq0uUHPx51wiuRPmRTLkjVqj7ixapbSftnJc=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
future
|
||||
pyparsing
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/sciunto-org/python-bibtexparser/pull/259
|
||||
substituteInPlace bibtexparser/tests/test_crossref_resolving.py \
|
||||
--replace "import unittest2 as unittest" "import unittest"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bibtexparser"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Bibtex parser for Python";
|
||||
homepage = "https://github.com/sciunto-org/python-bibtexparser";
|
||||
license = with licenses; [ lgpl3Only /* or */ bsd3 ];
|
||||
maintainers = with maintainers; [ fridh ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue