1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 lib, 5 6 # build-system 7 poetry-core, 8 9 # dependencies 10 django, 11 markdown, 12 pyyaml, 13 14 # tests 15 beautifulsoup4, 16 pytestCheckHook, 17 pytest-django, 18}: 19 20buildPythonPackage rec { 21 pname = "django-pattern-library"; 22 version = "1.3.0"; 23 pyproject = true; 24 25 src = fetchFromGitHub { 26 owner = "torchbox"; 27 repo = "django-pattern-library"; 28 tag = "v${version}"; 29 hash = "sha256-2a/Rg6ljBe1J0FOob7Z9aNVZZ3l+gTD34QCRjk4PiQg="; 30 }; 31 32 nativeBuildInputs = [ poetry-core ]; 33 34 propagatedBuildInputs = [ 35 django 36 pyyaml 37 markdown 38 ]; 39 40 nativeCheckInputs = [ 41 beautifulsoup4 42 pytestCheckHook 43 pytest-django 44 ]; 45 46 env.DJANGO_SETTINGS_MODULE = "tests.settings.dev"; 47 48 pythonImportsCheck = [ "pattern_library" ]; 49 50 meta = with lib; { 51 description = "UI pattern libraries for Django templates"; 52 homepage = "https://github.com/torchbox/django-pattern-library/"; 53 changelog = "https://github.com/torchbox/django-pattern-library/blob/v${version}/CHANGELOG.md"; 54 license = licenses.bsd3; 55 maintainers = with maintainers; [ sephi ]; 56 }; 57}