summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tempman/default.nix
blob: 1cc8ddbf9bec3780ce1832fafa0628a434896d08 (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
41
42
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
  gitUpdater,
}:

buildPythonPackage rec {
  pname = "tempman";
  version = "0.1.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mwilliamson";
    repo = "python-tempman";
    tag = version;
    hash = "sha256-EHTnlT3vcmyjyyS3QCJXjAuZqOEc0i11rEb6zfX6rDY=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail 'read("README")' '""'
  '';

  build-system = [ setuptools ];

  pythonImportsCheck = [ "tempman" ];

  # Disabling tests, they rely on dependencies that are outdated and not supported
  doCheck = false;

  passthru.updateScripts = gitUpdater { };

  meta = {
    description = "Create and clean up temporary directories";
    homepage = "https://github.com/mwilliamson/python-tempman";
    license = lib.licenses.bsd2;
    maintainers = [ ];
  };
}