diff options
author | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2019-04-03 15:23:53 +0200 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2019-04-03 16:22:08 +0200 |
commit | 26fd86fa571ca6f39c2225976289a02fd462a5a5 (patch) | |
tree | bb58a84c919691948ff0fc19e54e545ab2731ef7 /pkgs/development/python-modules/canmatrix | |
parent | 566bd2605b0220116a3771dbc34d675aa7396cc6 (diff) | |
download | nixpkgs-26fd86fa571ca6f39c2225976289a02fd462a5a5.tar nixpkgs-26fd86fa571ca6f39c2225976289a02fd462a5a5.tar.gz nixpkgs-26fd86fa571ca6f39c2225976289a02fd462a5a5.tar.bz2 nixpkgs-26fd86fa571ca6f39c2225976289a02fd462a5a5.tar.lz nixpkgs-26fd86fa571ca6f39c2225976289a02fd462a5a5.tar.xz nixpkgs-26fd86fa571ca6f39c2225976289a02fd462a5a5.tar.zst nixpkgs-26fd86fa571ca6f39c2225976289a02fd462a5a5.zip |
python.pkgs.canmatrix: 0.6 -> 0.7
Diffstat (limited to 'pkgs/development/python-modules/canmatrix')
-rw-r--r-- | pkgs/development/python-modules/canmatrix/default.nix | 44 |
1 files changed, 29 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/canmatrix/default.nix b/pkgs/development/python-modules/canmatrix/default.nix index 3e07188986d..a6c3f485d74 100644 --- a/pkgs/development/python-modules/canmatrix/default.nix +++ b/pkgs/development/python-modules/canmatrix/default.nix @@ -1,40 +1,54 @@ { lib , buildPythonPackage , fetchFromGitHub -, python +, pythonOlder +, attrs +, bitstruct +, future +, pathlib2 +, typing , lxml , xlwt , xlrd , XlsxWriter , pyyaml -, future }: +, pytest +}: buildPythonPackage rec { pname = "canmatrix"; - version = "0.6"; + version = "0.7"; # uses fetchFromGitHub as PyPi release misses test/ dir src = fetchFromGitHub { owner = "ebroecker"; repo = pname; rev = version; - sha256 = "1lb0krhchja2jqfsh5lsfgmqcchs1pd38akvc407jfmll96f4yqz"; + sha256 = "0q8qb282nfgirl8r2i9c8whm3hvr14ig2r42ssgnv2hya971cwjq"; }; + propagatedBuildInputs = [ + # required + attrs + bitstruct + future + pathlib2 + # optional + lxml + xlwt + xlrd + XlsxWriter + pyyaml + ] ++ lib.optional (pythonOlder "3.5") typing; + + checkInputs = [ + pytest + ]; + checkPhase = '' - cd test - ${python.interpreter} ./test.py + pytest -s src/canmatrix ''; - propagatedBuildInputs = - [ lxml - xlwt - xlrd - XlsxWriter - pyyaml - future - ]; - 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)"; |