nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, black
3, buildPythonPackage
4, fetchPypi
5, cachecontrol
6, lockfile
7, mistune
8, rdflib
9, ruamel-yaml
10, pytestCheckHook
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "schema-salad";
16 version = "8.2.20220204150214";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-PlPb/nE3eWueUTWSDpa7JxPe2ee+KFna5VTR3IsClwQ=";
24 };
25
26 propagatedBuildInputs = [
27 cachecontrol
28 lockfile
29 mistune
30 rdflib
31 ruamel-yaml
32 ];
33
34 checkInputs = [
35 black
36 pytestCheckHook
37 ];
38
39 disabledTests = [
40 # Setup for these tests requires network access
41 "test_secondaryFiles"
42 "test_outputBinding"
43 # Test requires network
44 "test_yaml_tab_error"
45 ];
46
47 pythonImportsCheck = [
48 "schema_salad"
49 ];
50
51 meta = with lib; {
52 description = "Semantic Annotations for Linked Avro Data";
53 homepage = "https://github.com/common-workflow-language/schema_salad";
54 license = with licenses; [ asl20 ];
55 maintainers = with maintainers; [ veprbl ];
56 };
57}