summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/fasteners/default.nix
blob: f12d322adc3a2495f9c51e5574cc9e3107d81a46 (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
43
44
{
  lib,
  buildPythonPackage,
  diskcache,
  eventlet,
  fetchFromGitHub,
  more-itertools,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "fasteners";
  version = "0.20";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "harlowja";
    repo = "fasteners";
    tag = version;
    hash = "sha256-h8hlx3yl1+EgqCGE02O+wLejwxgJ5ZOs6nPrYUtHwn0=";
  };

  nativeBuildInputs = [ setuptools ];

  nativeCheckInputs = [
    diskcache
    eventlet
    more-itertools
    pytestCheckHook
  ];

  pythonImportsCheck = [ "fasteners" ];

  enabledTestPaths = [ "tests/" ];

  meta = {
    description = "Module that provides useful locks";
    homepage = "https://github.com/harlowja/fasteners";
    changelog = "https://github.com/harlowja/fasteners/releases/tag/${version}";
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
}