nixpkgs/pkgs/development/python-modules/portalocker/default.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, fetchpatch
2019-05-28 19:14:54 +01:00
, sphinx
, pytest
, pytestcov
, pytest-flake8
2019-05-28 19:14:54 +01:00
}:
buildPythonPackage rec {
version = "1.7.0";
2019-05-28 19:14:54 +01:00
pname = "portalocker";
src = fetchPypi {
inherit pname version;
sha256 = "1p32v16va780mjjdbyp3v702aqg5s618khlila7bdyynis1n84q9";
2019-05-28 19:14:54 +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
pytest-flake8
2019-05-28 19:14:54 +01:00
];
meta = with lib; {
description = "A library to provide an easy API to file locking";
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
};
}