Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / graphlib-backport / default.nix
blob54d166a88ba2a7ca56aba9eb64b1ec11eea0bc8a
1 { lib
2 , fetchFromGitHub
3 , buildPythonPackage
4 , setuptools
5 , poetry-core
6 }:
8 buildPythonPackage rec {
9   pname = "graphlib-backport";
10   version = "1.1.0";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "mariushelf";
16     repo = "graphlib_backport";
17     rev = version;
18     hash = "sha256-ssJLtBQH8sSnccgcAKLKfYpPyw5U0RIm1F66/Er81lo=";
19   };
21   postPatch = ''
22     substituteInPlace pyproject.toml        \
23       --replace 'poetry>=1.0' 'poetry-core' \
24       --replace 'poetry.masonry.api' 'poetry.core.masonry.api'
25   '';
27   propagatedBuildInputs = [
28     setuptools
29     poetry-core
30   ];
32   pythonImportsCheck = [ "graphlib" ];
34   meta = with lib; {
35     description = "Backport of the Python 3.9 graphlib module for Python 3.6+";
36     homepage = "https://github.com/mariushelf/graphlib_backport";
37     license = licenses.psfl;
38     maintainers = with maintainers; [ t4ccer ];
39   };