evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / mwtypes / default.nix
blob727d5e61821cd7a5fe296f5ce833c1843cf79d1c
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   jsonable,
6   pytestCheckHook,
7   fetchpatch2,
8   setuptools,
9 }:
11 buildPythonPackage rec {
12   pname = "mwtypes";
13   version = "0.4.0";
14   pyproject = true;
16   src = fetchPypi {
17     inherit version pname;
18     hash = "sha256-PgcGUk/27cAIvzfLvRoVX2vHOCab59m+4bciDPmtlW8=";
19   };
21   patches = [
22     # https://github.com/mediawiki-utilities/python-mwtypes/pull/6
23     (fetchpatch2 {
24       name = "nose-to-pytest.patch";
25       url = "https://github.com/mediawiki-utilities/python-mwtypes/commit/58d7f59e4927aaa6278f84576794df713c673058.patch";
26       hash = "sha256-jh1uEqqhIK2DyNvVN0XYGM7BXTmypnoC4VoB0V+9JmE=";
27     })
28   ];
30   build-system = [ setuptools ];
32   dependencies = [ jsonable ];
34   nativeCheckInputs = [ pytestCheckHook ];
36   # Even with 7z included, this test does not pass
37   disabledTests = [ "test_open_file" ];
39   pythonImportsCheck = [ "mwtypes" ];
41   meta = {
42     description = "Set of classes for working with MediaWiki data types";
43     homepage = "https://github.com/mediawiki-utilities/python-mwtypes";
44     license = lib.licenses.mit;
45     maintainers = with lib.maintainers; [ GaetanLepage ];
46   };