Loading pkgs/development/python-modules/pyunormalize/default.nix +9 −12 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, setuptools, # nativeCheckInputs fetchFromGitHub, pytestCheckHook, setuptools, }: buildPythonPackage rec { pname = "pyunormalize"; version = "16.0.0"; version = "17.0.0"; pyproject = true; # No tags on GitHub src = fetchPypi { inherit pname version; hash = "sha256-Lh37tKEYFUrib3BxBCalKjZLkmyRkfdkYB9ajLEnYfc="; src = fetchFromGitHub { owner = "mlodewijck"; repo = "pyunormalize"; tag = "v${version}"; hash = "sha256-JDcMWaA6r8YRZYJseyKUyPAInrqHHYhQXYmw9rr3ls4="; }; build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; # The pypi archive does not contain the tests. # NOTE: one should review this for each future update. doCheck = false; pythonImportsCheck = [ "pyunormalize" ]; meta = { description = "Unicode normalization forms (NFC, NFKC, NFD, NFKD) independent of the Python core Unicode database"; homepage = "https://github.com/mlodewijck/pyunormalize"; changelog = "https://github.com/mlodewijck/pyunormalize/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hellwolf ]; }; Loading Loading
pkgs/development/python-modules/pyunormalize/default.nix +9 −12 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchPypi, setuptools, # nativeCheckInputs fetchFromGitHub, pytestCheckHook, setuptools, }: buildPythonPackage rec { pname = "pyunormalize"; version = "16.0.0"; version = "17.0.0"; pyproject = true; # No tags on GitHub src = fetchPypi { inherit pname version; hash = "sha256-Lh37tKEYFUrib3BxBCalKjZLkmyRkfdkYB9ajLEnYfc="; src = fetchFromGitHub { owner = "mlodewijck"; repo = "pyunormalize"; tag = "v${version}"; hash = "sha256-JDcMWaA6r8YRZYJseyKUyPAInrqHHYhQXYmw9rr3ls4="; }; build-system = [ setuptools ]; nativeCheckInputs = [ pytestCheckHook ]; # The pypi archive does not contain the tests. # NOTE: one should review this for each future update. doCheck = false; pythonImportsCheck = [ "pyunormalize" ]; meta = { description = "Unicode normalization forms (NFC, NFKC, NFD, NFKD) independent of the Python core Unicode database"; homepage = "https://github.com/mlodewijck/pyunormalize"; changelog = "https://github.com/mlodewijck/pyunormalize/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hellwolf ]; }; Loading