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
64
pkgs/development/python-modules/canmatrix/default.nix
Normal file
64
pkgs/development/python-modules/canmatrix/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, attrs
|
||||
, bitstruct
|
||||
, click
|
||||
, future
|
||||
, pathlib2
|
||||
, typing ? null
|
||||
, lxml
|
||||
, xlwt
|
||||
, xlrd
|
||||
, XlsxWriter
|
||||
, pyyaml
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "canmatrix";
|
||||
version = "0.9.5";
|
||||
|
||||
# uses fetchFromGitHub as PyPi release misses test/ dir
|
||||
src = fetchFromGitHub {
|
||||
owner = "ebroecker";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0x8x8kbg4gyzi0ia9657xygp0mqfii76b67fsx76d31bqsdvlda5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
# required
|
||||
attrs
|
||||
bitstruct
|
||||
click
|
||||
future
|
||||
pathlib2
|
||||
# optional
|
||||
lxml
|
||||
xlwt
|
||||
xlrd
|
||||
XlsxWriter
|
||||
pyyaml
|
||||
] ++ lib.optional (pythonOlder "3.5") typing;
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "version = versioneer.get_version()" "version = \"${version}\""
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
# long_envvar_name_imports requires stable key value pair ordering
|
||||
pytestFlagsArray = [ "-s src/canmatrix" ];
|
||||
disabledTests = [ "long_envvar_name_imports" ];
|
||||
pythonImportsCheck = [ "canmatrix" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/ebroecker/canmatrix";
|
||||
description = "Support and convert several CAN (Controller Area Network) database formats .arxml .dbc .dbf .kcd .sym fibex xls(x)";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ sorki ];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue