nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 numpy,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "mockito";
12 version = "1.5.5";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-SYJuOQHcgm0CBOk7Ftzhxh3enTqU6tycIJqw4TAoM5M=";
18 };
19
20 nativeBuildInputs = [ hatchling ];
21
22 nativeCheckInputs = [
23 numpy
24 pytestCheckHook
25 ];
26
27 pythonImportsCheck = [ "mockito" ];
28
29 meta = {
30 description = "Spying framework";
31 homepage = "https://github.com/kaste/mockito-python";
32 changelog = "https://github.com/kaste/mockito-python/blob/${version}/CHANGES.txt";
33 license = lib.licenses.mit;
34 maintainers = [ ];
35 };
36}