about summary refs log tree commit diff
path: root/pkgs/development/python-modules/lockfile/default.nix
blob: 04e4bc881bfc458bbac97b7dde3f2550428a1230 (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,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pbr,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "lockfile";
  version = "0.12.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-au0C3gPLok76vNYAswVAFAY0/AbPpgOCLVCNU2Hp95k=";
  };

  patches = [ ./fix-tests.patch ];

  build-system = [
    pbr
    setuptools
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    homepage = "https://launchpad.net/pylockfile";
    description = "Platform-independent advisory file locking capability for Python applications";
    license = lib.licenses.asl20;
  };
}