2020-05-10 18:47:08 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, fetchpatch
|
2019-05-28 19:14:54 +01:00
|
|
|
, sphinx
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
2020-05-10 18:47:08 +01:00
|
|
|
, pytest-flake8
|
2019-05-28 19:14:54 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-05-10 18:47:08 +01:00
|
|
|
version = "1.7.0";
|
2019-05-28 19:14:54 +01:00
|
|
|
pname = "portalocker";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-10 18:47:08 +01:00
|
|
|
sha256 = "1p32v16va780mjjdbyp3v702aqg5s618khlila7bdyynis1n84q9";
|
2019-05-28 19:14:54 +01:00
|
|
|
};
|
|
|
|
|
2020-05-10 18:47:08 +01:00
|
|
|
patches = [
|
|
|
|
# remove pytest-flakes from test dependencies
|
|
|
|
# merged into master, remove > 1.7.0 release
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/WoLpH/portalocker/commit/42e4c0a16bbc987c7e33b5cbc7676a63a164ceb5.patch";
|
|
|
|
sha256 = "01mlr41nhh7mh3qhqy5fhp3br4nps745iy4ns9fjcnm5xhabg5rr";
|
|
|
|
excludes = [ "pytest.ini" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-05-28 19:14:54 +01:00
|
|
|
checkInputs = [
|
|
|
|
sphinx
|
|
|
|
pytest
|
|
|
|
pytestcov
|
2020-05-10 18:47:08 +01:00
|
|
|
pytest-flake8
|
2019-05-28 19:14:54 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A library to provide an easy API to file locking";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/WoLpH/portalocker";
|
2019-05-28 19:14:54 +01:00
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
platforms = platforms.unix; # Windows has a dependency on pypiwin32
|
|
|
|
};
|
|
|
|
}
|