Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.0 kB view raw
1{ lib, buildPythonPackage, fetchPypi, fetchpatch 2, sphinx 3, pytest 4, pytestcov 5, pytest-flake8 6}: 7 8buildPythonPackage rec { 9 version = "1.7.0"; 10 pname = "portalocker"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "1p32v16va780mjjdbyp3v702aqg5s618khlila7bdyynis1n84q9"; 15 }; 16 17 patches = [ 18 # remove pytest-flakes from test dependencies 19 # merged into master, remove > 1.7.0 release 20 (fetchpatch { 21 url = "https://github.com/WoLpH/portalocker/commit/42e4c0a16bbc987c7e33b5cbc7676a63a164ceb5.patch"; 22 sha256 = "01mlr41nhh7mh3qhqy5fhp3br4nps745iy4ns9fjcnm5xhabg5rr"; 23 excludes = [ "pytest.ini" ]; 24 }) 25 ]; 26 27 checkInputs = [ 28 sphinx 29 pytest 30 pytestcov 31 pytest-flake8 32 ]; 33 34 meta = with lib; { 35 description = "A library to provide an easy API to file locking"; 36 homepage = "https://github.com/WoLpH/portalocker"; 37 license = licenses.psfl; 38 maintainers = with maintainers; [ jonringer ]; 39 platforms = platforms.unix; # Windows has a dependency on pypiwin32 40 }; 41}