3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/mox/default.nix
Fabian Affolter 7062911877 python310Packages.mox: 0.5.3 -> 0.7.8
- enable tests
- add pythonImportsCheck
2022-05-18 20:39:31 +02:00

42 lines
701 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "mox";
version = "0.7.8";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ivancrneto";
repo = "pymox";
rev = "v${version}";
hash = "sha256-gODE9IGDk3WtO8iPOlp98fGp6Ih2laA3YlOHmq62m8Y=";
};
propagatedBuildInputs = [
six
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"mox"
];
meta = with lib; {
description = "Mock object framework";
homepage = "https://github.com/ivancrneto/pymox";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}