Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / portalocker / default.nix
blobcd66b0950eefb9e74d3a857ee96d56518fc3bcd0
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
6 # build-system
7 , setuptools
8 , setuptools-scm
10 # dependencies
11 , redis
13 # tests
14 , pygments
15 , pytestCheckHook
18 buildPythonPackage rec {
19   pname = "portalocker";
20   version = "2.8.2";
21   pyproject = true;
23   disabled = pythonOlder "3.7";
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-KwNap4KORsWOmzE5DuHxabmOEGarELmmqGH+fiXuTzM=";
28   };
30   postPatch = ''
31     sed -i "/--cov/d" pytest.ini
32   '';
34   nativeBuildInputs = [
35     setuptools
36     setuptools-scm
37   ];
39   propagatedBuildInputs = [
40     redis
41   ];
43   nativeCheckInputs = [
44     pygments
45     pytestCheckHook
46   ];
48   pythonImportsCheck = [
49     "portalocker"
50   ];
52   meta = with lib; {
53     changelog = "https://github.com/wolph/portalocker/releases/tag/v${version}";
54     description = "A library to provide an easy API to file locking";
55     homepage = "https://github.com/WoLpH/portalocker";
56     license = licenses.psfl;
57     maintainers = with maintainers; [ jonringer ];
58   };