aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/canmatrix/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/canmatrix/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/canmatrix/default.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/canmatrix/default.nix b/nixpkgs/pkgs/development/python-modules/canmatrix/default.nix
index b9a61af8b48..6e487b58cff 100644
--- a/nixpkgs/pkgs/development/python-modules/canmatrix/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/canmatrix/default.nix
@@ -4,6 +4,7 @@
, pythonOlder
, attrs
, bitstruct
+, click
, future
, pathlib2
, typing
@@ -17,20 +18,21 @@
buildPythonPackage rec {
pname = "canmatrix";
- version = "0.8";
+ version = "0.9.1";
# uses fetchFromGitHub as PyPi release misses test/ dir
src = fetchFromGitHub {
owner = "ebroecker";
repo = pname;
rev = version;
- sha256 = "1wzflapyj2j4xsi7d7gfmznmxbgr658n092xyq9nac46rbhpcphg";
+ sha256 = "129lcchq45h8wqjvvn0rwpbmih4m0igass2cx7a21z94li97hcia";
};
propagatedBuildInputs = [
# required
attrs
bitstruct
+ click
future
pathlib2
# optional
@@ -41,12 +43,18 @@ buildPythonPackage rec {
pyyaml
] ++ lib.optional (pythonOlder "3.5") typing;
+ postPatch = ''
+ substituteInPlace setup.py \
+ --replace "version = versioneer.get_version()" "version = \"${version}\""
+ '';
+
checkInputs = [
pytest
];
+ # long_envvar_name_imports requires stable key value pair ordering
checkPhase = ''
- pytest -s src/canmatrix
+ pytest -s src/canmatrix -k 'not long_envvar_name_imports'
'';
meta = with lib; {