depot/third_party/nixpkgs/pkgs/development/python-modules/lockfile/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

37 lines
668 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pbr
, pynose
}:
buildPythonPackage rec {
pname = "lockfile";
version = "0.12.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799";
};
build-system = [
pbr
setuptools
];
nativeCheckInputs = [ pynose ];
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;
};
}