depot/third_party/nixpkgs/pkgs/development/python-modules/lockfile/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

42 lines
743 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pbr,
nose,
pythonOlder,
}:
buildPythonPackage rec {
pname = "lockfile";
version = "0.12.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799";
};
build-system = [
pbr
setuptools
];
# tests rely on nose
doCheck = pythonOlder "3.12";
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;
};
}