Loading pkgs/development/python-modules/uri-template/default.nix +24 −9 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, python }: { lib , buildPythonPackage , fetchFromGitHub , python , pythonOlder , setuptools , setuptools-scm }: buildPythonPackage rec { pname = "uri-template"; version = "1.2.0"; version = "1.3.0"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "plinss"; repo = "uri_template"; rev = "v${version}"; hash = "sha256-IAq6GpEwimq45FU0QugLZLSOhwAmC1KbpZKD0zyxsUs="; rev = "refs/tags/v${version}"; hash = "sha256-38HFFqM6yfpsPrhIpE639ePy/NbLqKw7gbnE3y8sL3w="; }; postPatch = '' sed -i -e 's/0.0.0/${version}/' setup.py ''; env.SETUPTOOLS_SCM_PRETEND_VERSION = version; nativeBuildInputs = [ setuptools setuptools-scm ]; checkPhase = '' ${python.interpreter} test.py ''; pythonImportsCheck = [ "uri_template" ]; pythonImportsCheck = [ "uri_template" ]; meta = with lib; { description = "An implementation of RFC 6570 URI Templates"; homepage = "https://github.com/plinss/uri_template/"; license = licenses.mit; maintainers = []; maintainers = with maintainers; [ ]; }; } Loading
pkgs/development/python-modules/uri-template/default.nix +24 −9 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, python }: { lib , buildPythonPackage , fetchFromGitHub , python , pythonOlder , setuptools , setuptools-scm }: buildPythonPackage rec { pname = "uri-template"; version = "1.2.0"; version = "1.3.0"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "plinss"; repo = "uri_template"; rev = "v${version}"; hash = "sha256-IAq6GpEwimq45FU0QugLZLSOhwAmC1KbpZKD0zyxsUs="; rev = "refs/tags/v${version}"; hash = "sha256-38HFFqM6yfpsPrhIpE639ePy/NbLqKw7gbnE3y8sL3w="; }; postPatch = '' sed -i -e 's/0.0.0/${version}/' setup.py ''; env.SETUPTOOLS_SCM_PRETEND_VERSION = version; nativeBuildInputs = [ setuptools setuptools-scm ]; checkPhase = '' ${python.interpreter} test.py ''; pythonImportsCheck = [ "uri_template" ]; pythonImportsCheck = [ "uri_template" ]; meta = with lib; { description = "An implementation of RFC 6570 URI Templates"; homepage = "https://github.com/plinss/uri_template/"; license = licenses.mit; maintainers = []; maintainers = with maintainers; [ ]; }; }