mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
50 lines
968 B
Nix
50 lines
968 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
jsonschema,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oras";
|
|
version = "0.2.25";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oras-project";
|
|
repo = "oras-py";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-o9PSd5vZ5qllL73WPSlSaLA5QmKKLshGgfidiM4h+5g=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
jsonschema
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "oras" ];
|
|
|
|
disabledTests = [
|
|
# Test requires network access
|
|
"test_get_many_tags"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "ORAS Python SDK";
|
|
homepage = "https://github.com/oras-project/oras-py";
|
|
changelog = "https://github.com/oras-project/oras-py/blob/${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|