nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.4 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch, 6 setuptools, 7 fields, 8 process-tests, 9 pytestCheckHook, 10 tornado, 11}: 12 13buildPythonPackage rec { 14 pname = "aspectlib"; 15 version = "2.0.0"; 16 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-pLRhudoLUxrry5PvzePegIpyxgIm3Y2QLEZ9E/r3zpI="; 22 }; 23 24 patches = [ 25 # https://github.com/ionelmc/python-aspectlib/pull/25 26 (fetchpatch { 27 name = "darwin-compat.patch"; 28 url = "https://github.com/ionelmc/python-aspectlib/commit/ef2c12304f08723dc8e79d1c59bc32c946d758dc.patch"; 29 hash = "sha256-gtPFtwDsGIMkHTyuoiLk+SAGgB2Wyx/Si9HIdoIsvI8="; 30 }) 31 ]; 32 33 nativeBuildInputs = [ setuptools ]; 34 35 propagatedBuildInputs = [ fields ]; 36 37 pythonImportsCheck = [ 38 "aspectlib" 39 "aspectlib.contrib" 40 "aspectlib.debug" 41 "aspectlib.test" 42 ]; 43 44 nativeCheckInputs = [ 45 process-tests 46 pytestCheckHook 47 tornado 48 ]; 49 50 pytestFlags = [ "-Wignore::DeprecationWarning" ]; 51 52 __darwinAllowLocalNetworking = true; 53 54 meta = { 55 changelog = "https://github.com/ionelmc/python-aspectlib/blob/v${version}/CHANGELOG.rst"; 56 description = "Aspect-oriented programming, monkey-patch and decorators library"; 57 homepage = "https://github.com/ionelmc/python-aspectlib"; 58 license = lib.licenses.bsd2; 59 maintainers = with lib.maintainers; [ dotlambda ]; 60 }; 61}