# Contributor: Fabian Affolter # Maintainer: Fabian Affolter global pkgname := 'py-flake8-isort' global _pkgname := 'flake8-isort' global pkgver := '2.0.1' global pkgrel := '1' global pkgdesc := '"Extension for flake8 which integrates isort'" global url := '"https://github.com/gforcada/flake8-isort'" global arch := '"noarch'" global license := '"GPL2'" global depends := '"flake8 py3-isort'" global makedepends := '"python3-dev'" global source := ""https://files.pythonhosted.org/packages/source/$(_pkgname:0:1)/$_pkgname/$_pkgname-$pkgver.tar.gz"" global builddir := ""$srcdir"/$_pkgname-$pkgver" proc build { cd $builddir python3 setup.py build || return 1 } proc package { cd $builddir python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1 } global md5sums := '"06d102adf075c2dc4d4b4dd4dd534b91 flake8-isort-2.0.1.tar.gz'" global sha256sums := '"9b994a95b3b26552fa25a8b94d7b345aea87ddb8c3bf78e7869b73ecc6088de7 flake8-isort-2.0.1.tar.gz'" global sha512sums := '"c2d8006ea9dce62c2a990ab9769d65f1e040fcf3931c61b50a8dd208d3fa0037758102d46dafce4342126a38716b4ff3e06d7015a65a20a8458543ae8b2627d3 flake8-isort-2.0.1.tar.gz'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(py-flake8-isort)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_pkgname) op:Equal rhs:{(flake8-isort)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(2.0.1)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(1)} spids:[15])] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Extension for flake8 which integrates isort"))} spids: [18] ) ] spids: [18] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("https://github.com/gforcada/flake8-isort"))} spids: [23] ) ] spids: [23] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (noarch))} spids:[28])] spids: [28] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL2))} spids:[33])] spids: [33] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ("flake8 py3-isort"))} spids: [38] ) ] spids: [38] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: {(DQ (python3-dev))} spids: [43] ) ] spids: [43] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("https://files.pythonhosted.org/packages/source/") (BracedVarSub token: suffix_op: (Slice begin: (ArithWord w:{(Lit_Digits 0)}) length: (ArithWord w:{(Lit_Digits 1)}) ) spids: [51 57] ) (/) ($ VSub_Name "$_pkgname") (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver") (.tar.gz) ) } spids: [48] ) ] spids: [48] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$_pkgname") (-) ($ VSub_Name "$pkgver")} spids: [67] ) ] spids: [67] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(python3)} {(setup.py)} {(build)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [81] ) spids: [77 80] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(python3)} {(setup.py)} {(install)} {(--prefix) (Lit_Other "=") (/usr)} {(--root) (Lit_Other "=") (DQ ($ VSub_Name "$pkgdir"))} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [110] ) spids: [106 109] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:md5sums) op: Equal rhs: {(DQ ("06d102adf075c2dc4d4b4dd4dd534b91 flake8-isort-2.0.1.tar.gz"))} spids: [145] ) ] spids: [145] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha256sums) op: Equal rhs: { (DQ ( "9b994a95b3b26552fa25a8b94d7b345aea87ddb8c3bf78e7869b73ecc6088de7 flake8-isort-2.0.1.tar.gz" ) ) } spids: [150] ) ] spids: [150] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "c2d8006ea9dce62c2a990ab9769d65f1e040fcf3931c61b50a8dd208d3fa0037758102d46dafce4342126a38716b4ff3e06d7015a65a20a8458543ae8b2627d3 flake8-isort-2.0.1.tar.gz" ) ) } spids: [155] ) ] spids: [155] ) ] )