nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 importlib-resources,
7 jsonschema,
8 pyyaml,
9 six,
10 pytestCheckHook,
11 mock,
12}:
13
14buildPythonPackage (finalAttrs: {
15 pname = "swagger-spec-validator";
16 version = "3.0.4";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "Yelp";
21 repo = "swagger_spec_validator";
22 tag = "v${finalAttrs.version}";
23 hash = "sha256-8T0973g8JZKLCTpYqyScr/JAiFdBexEReUJoMQh4vO4=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 pyyaml
30 importlib-resources
31 jsonschema
32 six
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 mock
38 ];
39
40 pythonImportsCheck = [ "swagger_spec_validator" ];
41
42 meta = {
43 homepage = "https://github.com/Yelp/swagger_spec_validator";
44 license = lib.licenses.asl20;
45 description = "Validation of Swagger specifications";
46 maintainers = with lib.maintainers; [ vanschelven ];
47 };
48})