1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7 gitUpdater,
8}:
9
10buildPythonPackage rec {
11 pname = "tempman";
12 version = "0.1.3";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "mwilliamson";
17 repo = "python-tempman";
18 tag = version;
19 hash = "sha256-EHTnlT3vcmyjyyS3QCJXjAuZqOEc0i11rEb6zfX6rDY=";
20 };
21
22 postPatch = ''
23 substituteInPlace setup.py \
24 --replace-fail 'read("README")' '""'
25 '';
26
27 build-system = [ setuptools ];
28
29 pythonImportsCheck = [ "tempman" ];
30
31 # Disabling tests, they rely on dependencies that are outdated and not supported
32 doCheck = false;
33
34 passthru.updateScripts = gitUpdater { };
35
36 meta = {
37 description = "Create and clean up temporary directories";
38 homepage = "https://github.com/mwilliamson/python-tempman";
39 license = lib.licenses.bsd2;
40 maintainers = with lib.maintainers; [ ];
41 };
42}