3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #111007 from fabaff/bump-canmatrix

python3Packages.canmatrix: 0.9.1 -> 0.9.3
This commit is contained in:
Martin Weinelt 2021-02-04 13:14:59 +01:00 committed by GitHub
commit c6f12879b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 10 deletions

View file

@ -13,19 +13,19 @@
, xlrd
, XlsxWriter
, pyyaml
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "canmatrix";
version = "0.9.1";
version = "0.9.3";
# uses fetchFromGitHub as PyPi release misses test/ dir
src = fetchFromGitHub {
owner = "ebroecker";
repo = pname;
rev = version;
sha256 = "129lcchq45h8wqjvvn0rwpbmih4m0igass2cx7a21z94li97hcia";
sha256 = "sha256-9FupG1VmROgsxYhsafQYPPqG0xEOAYYK8QDOIBNzE0Y=";
};
propagatedBuildInputs = [
@ -48,14 +48,11 @@ buildPythonPackage rec {
--replace "version = versioneer.get_version()" "version = \"${version}\""
'';
checkInputs = [
pytest
];
checkInputs = [ pytestCheckHook ];
# long_envvar_name_imports requires stable key value pair ordering
checkPhase = ''
pytest -s src/canmatrix -k 'not long_envvar_name_imports'
'';
pytestFlagsArray = [ "-s src/canmatrix" ];
disabledTests = [ "long_envvar_name_imports" ];
pythonImportsCheck = [ "canmatrix" ];
meta = with lib; {
homepage = "https://github.com/ebroecker/canmatrix";

View file

@ -29,6 +29,8 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "canopen" ];
meta = with lib; {
homepage = "https://github.com/christiansandberg/canopen/";
description = "CANopen stack implementation";