depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-openfiles/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

36 lines
704 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pytest
, pytestCheckHook
, psutil
, setuptools_scm
}:
buildPythonPackage rec {
pname = "pytest-openfiles";
version = "0.5.0";
disabled = isPy27; # abandoned
src = fetchPypi {
inherit pname version;
sha256 = "179c2911d8aee3441fee051aba08e0d9b4dab61b829ae4811906d5c49a3b0a58";
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [
pytest
psutil
];
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Pytest plugin for detecting inadvertent open file handles";
homepage = "https://astropy.org";
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}