Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / picobox / default.nix
blob176c86e84f079d3c3b0b223a73867b8cb41ca71f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , flask
6 , hatchling
7 , hatch-vcs
8 , isPy27
9 , pytestCheckHook
12 buildPythonPackage rec {
13   pname = "picobox";
14   version = "3.0.0";
16   format = "pyproject";
18   disabled = isPy27;
20   src = fetchFromGitHub {
21     owner = "ikalnytskyi";
22     repo = pname;
23     rev = "refs/tags/${version}";
24     hash = "sha256-LQiSurL+eFRJ9iQheoo66o44BlfBtAatk8deuMFROcc=";
25   };
27   SETUPTOOLS_SCM_PRETEND_VERSION = version;
29   nativeBuildInputs = [
30     hatchling
31     hatch-vcs
32   ];
34   nativeCheckInputs = [
35     flask
36     pytestCheckHook
37   ];
39   pythonImportsCheck = [
40     "picobox"
41   ];
43   meta = with lib; {
44     description = "Opinionated dependency injection framework";
45     homepage = "https://github.com/ikalnytskyi/picobox";
46     license = licenses.mit;
47     maintainers = with maintainers; [ flokli ];
48   };