Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 64 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ 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}\"" '';
nativeCheckInputs = [ 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 ]; };}