depot/third_party/nixpkgs/pkgs/development/python-modules/lockfile/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
676 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;
};
}