1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "decorator"; 11 version = "5.2.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "micheles"; 16 repo = "decorator"; 17 tag = version; 18 hash = "sha256-UBjZ8LdgJ6iLBjNTlA3up0qAVBqTSZMJt7oEhUo3ZEo="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 pythonImportsCheck = [ "decorator" ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 enabledTestPaths = [ "tests/test.py " ]; 28 29 meta = with lib; { 30 changelog = "https://github.com/micheles/decorator/blob/${src.tag}/CHANGES.md"; 31 homepage = "https://github.com/micheles/decorator"; 32 description = "Better living through Python with decorators"; 33 license = licenses.bsd2; 34 maintainers = [ ]; 35 }; 36}