depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-openfiles/default.nix
Default email bba55970ba Project import generated by Copybara.
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
2021-04-05 17:23:46 +02:00

37 lines
722 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 ];
buildInputs = [ pytest ];
propagatedBuildInputs = [
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 ];
};
}