depot/third_party/nixpkgs/pkgs/development/python-modules/schema-salad/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

72 lines
1.3 KiB
Nix

{ lib
, black
, buildPythonPackage
, fetchPypi
, setuptools-scm
, cachecontrol
, lockfile
, mistune
, rdflib
, ruamel-yaml
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "schema-salad";
version = "8.3.20221209165047";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-2XzJpNfEJV64AAvOuqisDR0xgBySH9QROrMFHB4ybHw=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
cachecontrol
lockfile
mistune
rdflib
ruamel-yaml
];
checkInputs = [
pytestCheckHook
] ++ passthru.optional-dependencies.pycodegen;
preCheck = ''
rm tox.ini
'';
disabledTests = [
# Setup for these tests requires network access
"test_secondaryFiles"
"test_outputBinding"
# Test requires network
"test_yaml_tab_error"
];
pythonImportsCheck = [
"schema_salad"
];
passthru.optional-dependencies = {
pycodegen = [
black
];
};
meta = with lib; {
description = "Semantic Annotations for Linked Avro Data";
homepage = "https://github.com/common-workflow-language/schema_salad";
changelog = "https://github.com/common-workflow-language/schema_salad/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ veprbl ];
};
}