2023-11-16 04:20:00 +00:00
|
|
|
{ buildPythonPackage
|
2023-03-30 22:05:00 +00:00
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, fetchpatch
|
2023-03-30 22:05:00 +00:00
|
|
|
, lib
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# build-system
|
2023-03-30 22:05:00 +00:00
|
|
|
, poetry-core
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# dependencies
|
|
|
|
, django
|
|
|
|
, markdown
|
2023-03-30 22:05:00 +00:00
|
|
|
, pyyaml
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# tests
|
|
|
|
, beautifulsoup4
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-django
|
2023-03-30 22:05:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-pattern-library";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.2.0";
|
|
|
|
pyproject = true;
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "torchbox";
|
2023-11-16 04:20:00 +00:00
|
|
|
repo = "django-pattern-library";
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-hrdJYVioY6y9D29DuKPMZjdWj92GcbHXANWiEHadimI=";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
pyyaml
|
|
|
|
markdown
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [
|
2023-03-30 22:05:00 +00:00
|
|
|
beautifulsoup4
|
2023-11-16 04:20:00 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-django
|
2023-03-30 22:05:00 +00:00
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
env.DJANGO_SETTINGS_MODULE = "tests.settings.dev";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "pattern_library" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "UI pattern libraries for Django templates";
|
|
|
|
homepage = "https://github.com/torchbox/django-pattern-library/";
|
|
|
|
changelog = "https://github.com/torchbox/django-pattern-library/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ sephi ];
|
|
|
|
};
|
|
|
|
}
|