summary refs log tree commit diff
path: root/pkgs/development/python-modules/backports_tempfile/default.nix
blob: ef4f64def3a7d66424bbd7a610026445f93e5557 (plain) (blame)
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
{ lib
, unittestCheckHook
, buildPythonPackage
, fetchPypi
, setuptools-scm
, backports_weakref
}:

buildPythonPackage rec {
  pname = "backports.tempfile";
  version = "1.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1c648c452e8770d759bdc5a5e2431209be70d25484e1be24876cf2168722c762";
  };

  buildInputs = [ setuptools-scm ];

  propagatedBuildInputs = [ backports_weakref ];

  # requires https://pypi.org/project/backports.test.support
  doCheck = false;

  checkInputs = [ unittestCheckHook ];

  unittestFlagsArray = [ "-s" "tests" ];

  meta = {
    description = "Backport of new features in Python's tempfile module";
    license = lib.licenses.psfl;
    homepage = "https://github.com/pjdelport/backports.tempfile";
  };
}