summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/funk/default.nix
blob: c97f432617ec4815433ab650633a1c1c6c4809d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  precisely,
  gitUpdater,
}:

buildPythonPackage rec {
  pname = "funk";
  version = "0.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mwilliamson";
    repo = "funk";
    tag = version;
    hash = "sha256-dEq3zyA8rtNt0sui2TfQ3OUSCZ0XDMOdthcqt/QrCsU=";
  };

  build-system = [ setuptools ];

  dependencies = [ precisely ];

  pythonImportsCheck = [ "funk" ];

  # Disabling tests, they rely on Nose which is outdated and not supported
  doCheck = false;

  passthru.updateScripts = gitUpdater { };

  meta = {
    description = "Mocking framework for Python, influenced by JMock";
    homepage = "https://github.com/mwilliamson/funk";
    changelog = "https://github.com/mwilliamson/funk/blob/${src.tag}/NEWS";
    license = lib.licenses.bsd2;
    maintainers = [ ];
  };
}