depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-remotedata/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytest,
pytestCheckHook,
pythonOlder,
setuptools-scm,
six,
}:
buildPythonPackage rec {
pname = "pytest-remotedata";
version = "0.4.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-BcCL9jjN0e1m6wFzihZHw8cUc3w+w6vgCdLB95O0u1k=";
};
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ pytest ];
propagatedBuildInputs = [ six ];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# These tests require a network connection
"tests/test_strict_check.py"
];
pythonImportsCheck = [ "pytest_remotedata" ];
meta = with lib; {
description = "Pytest plugin for controlling remote data access";
homepage = "https://github.com/astropy/pytest-remotedata";
changelog = "https://github.com/astropy/pytest-remotedata/blob/v${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}