pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / django-pattern-library / default.nix
blob0aaa35f940dc074add7e815fe118c24a33acf9ce
2   buildPythonPackage,
3   fetchFromGitHub,
4   lib,
6   # build-system
7   poetry-core,
9   # dependencies
10   django,
11   markdown,
12   pyyaml,
14   # tests
15   beautifulsoup4,
16   pytestCheckHook,
17   pytest-django,
20 buildPythonPackage rec {
21   pname = "django-pattern-library";
22   version = "1.2.0";
23   pyproject = true;
25   src = fetchFromGitHub {
26     owner = "torchbox";
27     repo = "django-pattern-library";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-hrdJYVioY6y9D29DuKPMZjdWj92GcbHXANWiEHadimI=";
30   };
32   nativeBuildInputs = [ poetry-core ];
34   propagatedBuildInputs = [
35     django
36     pyyaml
37     markdown
38   ];
40   nativeCheckInputs = [
41     beautifulsoup4
42     pytestCheckHook
43     pytest-django
44   ];
46   env.DJANGO_SETTINGS_MODULE = "tests.settings.dev";
48   pythonImportsCheck = [ "pattern_library" ];
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   };