mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
pythonPackages.transitions: 0.8.5 -> 0.8.6
This commit is contained in:
parent
0bc275e634
commit
8c1ce4ec70
1 changed files with 10 additions and 15 deletions
|
@ -1,26 +1,21 @@
|
|||
{ lib, stdenv, buildPythonPackage, fetchPypi
|
||||
, six, nose, mock, dill, pycodestyle }:
|
||||
{ lib, buildPythonPackage, fetchFromGitHub
|
||||
, six, pytestCheckHook, mock, dill, pycodestyle }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "transitions";
|
||||
version = "0.8.5";
|
||||
version = "0.8.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "e441c66a0c753d56c01c3e5e547f21dbe4a5569c939f12477475c5e81d79769b";
|
||||
# test_codestyle.py fails in PyPI sdist
|
||||
src = fetchFromGitHub {
|
||||
owner = "pytransitions";
|
||||
repo = "transitions";
|
||||
rev = version;
|
||||
sha256 = "1d913hzzyqhdhhbkbvjw65dqkajrw50a4sxhyxk0jlg8pcs7bs7v";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "dill<0.2.7" dill
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
checkInputs = [ nose mock dill pycodestyle ];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
checkInputs = [ pytestCheckHook mock dill pycodestyle ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/pytransitions/transitions";
|
||||
|
|
Loading…
Reference in a new issue