depot/third_party/nixpkgs/pkgs/development/python-modules/lockfile/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

38 lines
672 B
Nix

{
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;
};
}