python3Packages.canmatrix: 0.8.0 -> 0.9.1
This commit is contained in:
parent
f32a8650fd
commit
e63a945017
@ -4,6 +4,7 @@
|
|||||||
, pythonOlder
|
, pythonOlder
|
||||||
, attrs
|
, attrs
|
||||||
, bitstruct
|
, bitstruct
|
||||||
|
, click
|
||||||
, future
|
, future
|
||||||
, pathlib2
|
, pathlib2
|
||||||
, typing
|
, typing
|
||||||
@ -17,20 +18,21 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "canmatrix";
|
pname = "canmatrix";
|
||||||
version = "0.8";
|
version = "0.9.1";
|
||||||
|
|
||||||
# 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 = "1wzflapyj2j4xsi7d7gfmznmxbgr658n092xyq9nac46rbhpcphg";
|
sha256 = "129lcchq45h8wqjvvn0rwpbmih4m0igass2cx7a21z94li97hcia";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
# required
|
# required
|
||||||
attrs
|
attrs
|
||||||
bitstruct
|
bitstruct
|
||||||
|
click
|
||||||
future
|
future
|
||||||
pathlib2
|
pathlib2
|
||||||
# optional
|
# optional
|
||||||
@ -41,12 +43,18 @@ buildPythonPackage rec {
|
|||||||
pyyaml
|
pyyaml
|
||||||
] ++ lib.optional (pythonOlder "3.5") typing;
|
] ++ lib.optional (pythonOlder "3.5") typing;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "version = versioneer.get_version()" "version = \"${version}\""
|
||||||
|
'';
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
pytest
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# long_envvar_name_imports requires stable key value pair ordering
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest -s src/canmatrix
|
pytest -s src/canmatrix -k 'not long_envvar_name_imports'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user