commit
9aba31a043
@ -1,24 +1,41 @@ |
|||||||
{ lib |
{ lib |
||||||
, buildPythonPackage |
, buildPythonPackage |
||||||
, fetchurl |
, fetchFromGitHub |
||||||
|
, pytestCheckHook |
||||||
|
, pythonOlder |
||||||
|
, six |
||||||
}: |
}: |
||||||
|
|
||||||
buildPythonPackage rec { |
buildPythonPackage rec { |
||||||
pname = "mox"; |
pname = "mox"; |
||||||
version = "0.5.3"; |
version = "0.7.8"; |
||||||
|
format = "setuptools"; |
||||||
|
|
||||||
src = fetchurl { |
disabled = pythonOlder "3.7"; |
||||||
url = "http://pymox.googlecode.com/files/${pname}-${version}.tar.gz"; |
|
||||||
sha256 = "4d18a4577d14da13d032be21cbdfceed302171c275b72adaa4c5997d589a5030"; |
src = fetchFromGitHub { |
||||||
|
owner = "ivancrneto"; |
||||||
|
repo = "pymox"; |
||||||
|
rev = "v${version}"; |
||||||
|
hash = "sha256-gODE9IGDk3WtO8iPOlp98fGp6Ih2laA3YlOHmq62m8Y="; |
||||||
}; |
}; |
||||||
|
|
||||||
# error: invalid command 'test' |
propagatedBuildInputs = [ |
||||||
doCheck = false; |
six |
||||||
|
]; |
||||||
|
|
||||||
|
checkInputs = [ |
||||||
|
pytestCheckHook |
||||||
|
]; |
||||||
|
|
||||||
|
pythonImportsCheck = [ |
||||||
|
"mox" |
||||||
|
]; |
||||||
|
|
||||||
meta = with lib; { |
meta = with lib; { |
||||||
homepage = "https://pymox.readthedocs.io/"; |
description = "Mock object framework"; |
||||||
description = "A mock object framework for Python"; |
homepage = "https://github.com/ivancrneto/pymox"; |
||||||
license = licenses.asl20; |
license = licenses.asl20; |
||||||
|
maintainers = with maintainers; [ ]; |
||||||
}; |
}; |
||||||
|
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue