diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-08-24 01:30:04 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-08-24 01:30:04 +0200 |
commit | 1b965cd21019a1e431bac68a7baa6b27778d111e (patch) | |
tree | a66d0b17e40234856ce0f2dd818cefac6c1e225d /pkgs/development/python-modules/mutf8 | |
parent | 098ca1a9aae33696adc149828e6722598be2d47c (diff) |
python3Packages.mutf8: init at 1.0.3
Diffstat (limited to 'pkgs/development/python-modules/mutf8')
-rw-r--r-- | pkgs/development/python-modules/mutf8/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mutf8/default.nix b/pkgs/development/python-modules/mutf8/default.nix new file mode 100644 index 0000000000000..e25d5a8938637 --- /dev/null +++ b/pkgs/development/python-modules/mutf8/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytest +, pythonOlder +}: + +buildPythonPackage rec { + pname = "mutf8"; + version = "1.0.3"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "TkTech"; + repo = pname; + rev = "v${version}"; + sha256 = "0p9xczkhrf9d3n44k6kxbnk9sm831k5gkiagk6vm75vcmzm7zdqc"; + }; + + checkInputs = [ + pytest + ]; + + checkPhase = '' + # Using pytestCheckHook results in test failures + pytest + ''; + + pythonImportsCheck = [ "mutf8" ]; + + meta = with lib; { + description = "Fast MUTF-8 encoder & decoder"; + homepage = "https://github.com/TkTech/mutf8"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} |