{ nixpkgs ? import { }, pythonPkgs ? nixpkgs.pkgs.python39Packages }: let inherit (nixpkgs) pkgs; inherit pythonPkgs; selfprivacy-api = { buildPythonPackage , fetchPypi , flask , flask-restful , setuptools , portalocker , flask-swagger , flask-swagger-ui , pytz , pytest , pytest-mock , pytest-datadir , huey , gevent , mnemonic , pydantic , strawberry_graphql }: buildPythonPackage rec { pname = "selfprivacy-api"; version = "1.2.6"; src = builtins.fetchGit { url = "https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git"; rev = "07e723dec8f61b9a987136f751809060db9f4df4"; ref = "graphql"; }; propagatedBuildInputs = [ flask flask-restful setuptools portalocker flask-swagger flask-swagger-ui pytz pytest pytest-mock pytest-datadir huey gevent mnemonic pydantic strawberry_graphql ]; meta = { description = '' SelfPrivacy Server Management API ''; }; }; drv = pythonPkgs.callPackage selfprivacy-api { }; in if pkgs.lib.inNixShell then drv.env else drv