about summary refs log tree commit diff
path: root/pkgs/development/python-modules/lockfile/default.nix
blob: 5423a1abb300f2403197a78e7977b4d92e0b5626 (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
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pbr,
  nose,
}:

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799";
  };

  build-system = [
    pbr
    setuptools
  ];

  nativeCheckInputs = [ nose ];

  checkPhase = ''
    runHook preCheck
    nosetests
    runHook postcheck
  '';

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