python.pkgs.canmatrix: 0.6 -> 0.7
This commit is contained in:
parent
566bd2605b
commit
26fd86fa57
@ -1,39 +1,53 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python
|
, pythonOlder
|
||||||
|
, attrs
|
||||||
|
, bitstruct
|
||||||
|
, future
|
||||||
|
, pathlib2
|
||||||
|
, typing
|
||||||
, lxml
|
, lxml
|
||||||
, xlwt
|
, xlwt
|
||||||
, xlrd
|
, xlrd
|
||||||
, XlsxWriter
|
, XlsxWriter
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, future }:
|
, pytest
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "canmatrix";
|
pname = "canmatrix";
|
||||||
version = "0.6";
|
version = "0.7";
|
||||||
|
|
||||||
# uses fetchFromGitHub as PyPi release misses test/ dir
|
# uses fetchFromGitHub as PyPi release misses test/ dir
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ebroecker";
|
owner = "ebroecker";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1lb0krhchja2jqfsh5lsfgmqcchs1pd38akvc407jfmll96f4yqz";
|
sha256 = "0q8qb282nfgirl8r2i9c8whm3hvr14ig2r42ssgnv2hya971cwjq";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = ''
|
propagatedBuildInputs = [
|
||||||
cd test
|
# required
|
||||||
${python.interpreter} ./test.py
|
attrs
|
||||||
'';
|
bitstruct
|
||||||
|
future
|
||||||
|
pathlib2
|
||||||
|
# optional
|
||||||
|
lxml
|
||||||
|
xlwt
|
||||||
|
xlrd
|
||||||
|
XlsxWriter
|
||||||
|
pyyaml
|
||||||
|
] ++ lib.optional (pythonOlder "3.5") typing;
|
||||||
|
|
||||||
propagatedBuildInputs =
|
checkInputs = [
|
||||||
[ lxml
|
pytest
|
||||||
xlwt
|
];
|
||||||
xlrd
|
|
||||||
XlsxWriter
|
checkPhase = ''
|
||||||
pyyaml
|
pytest -s src/canmatrix
|
||||||
future
|
'';
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = https://github.com/ebroecker/canmatrix;
|
homepage = https://github.com/ebroecker/canmatrix;
|
||||||
|
Loading…
Reference in New Issue
Block a user