Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 49 lines 1.3 kB view raw
1{ lib, buildPythonPackage, fetchPypi, nose }: 2 3let 4 lark-parser = buildPythonPackage rec { 5 pname = "lark-parser"; 6 version = "0.7.8"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "JiFeuxV+b7LudDGapERbnzt+RW4mviFc4Z/aqpAcIKQ="; 11 }; 12 13 doCheck = true; 14 }; 15in 16buildPythonPackage rec { 17 pname = "bc-python-hcl2"; 18 version = "0.3.11"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "VZhI1oJ2EDZGyz3iI6/KYvJq4BGafzR+rcSgHqlUDrA="; 23 }; 24 25 # Nose is required during build process, so can not use `checkInputs`. 26 buildInputs = [ 27 nose 28 ]; 29 30 propagatedBuildInputs = [ 31 lark-parser 32 ]; 33 34 pythonImportsCheck = [ "hcl2" ]; 35 36 meta = with lib; { 37 description = "A parser for HCL2 written in Python using Lark"; 38 longDescription = '' 39 A parser for HCL2 written in Python using Lark. 40 This parser only supports HCL2 and isn't backwards compatible with HCL v1. 41 It can be used to parse any HCL2 config file such as Terraform. 42 ''; 43 # Although this is the main homepage from PyPi but it is also a homepage 44 # of another PyPi package (python-hcl2). But these two are different. 45 homepage = "https://github.com/amplify-education/python-hcl2"; 46 license = licenses.mit; 47 maintainers = [ maintainers.anhdle14 ]; 48 }; 49}