1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
52 lines
943 B
Nix
52 lines
943 B
Nix
{
|
|
lib,
|
|
boto3,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
jsonschema,
|
|
pytestCheckHook,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oras";
|
|
version = "0.2.37";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oras-project";
|
|
repo = "oras-py";
|
|
tag = version;
|
|
hash = "sha256-pXIA970QBIlbFVFpN1Yl71ojc+atdXQuNoPEW+PrrWc=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
jsonschema
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
boto3
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "oras" ];
|
|
|
|
disabledTests = [
|
|
# Test requires network access
|
|
"test_get_many_tags"
|
|
"test_ssl"
|
|
];
|
|
|
|
meta = {
|
|
description = "ORAS Python SDK";
|
|
homepage = "https://github.com/oras-project/oras-py";
|
|
changelog = "https://github.com/oras-project/oras-py/blob/${src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|