11 buildPythonPackage rec {
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitHub {
21 rev = "refs/tags/v${version}";
22 hash = "sha256-LrDLIWiV/zIbl7CwKh7DAy4LoLyY7+hfUu8nqduclnA=";
26 # Replace SafeConfigParser and readfp, https://github.com/milanmeu/aioaseko/pull/6
28 name = "replace-safeconfigparser.patch";
29 url = "https://github.com/irgeek/StrEnum/commit/896bef1b7e4a50c8b53d90c8d2fb5c0164f08ecd.patch";
30 hash = "sha256-dmmEzhy17huclo1wOubpBUDc2L7vqEU5b/6a5loM47A=";
35 substituteInPlace setup.py \
36 --replace '"pytest-runner"' ""
37 substituteInPlace pytest.ini \
38 --replace " --cov=strenum --cov-report term-missing --black --pylint" ""
41 nativeBuildInputs = [ setuptools ];
43 nativeCheckInputs = [ pytestCheckHook ];
45 pythonImportsCheck = [ "strenum" ];
48 description = "Module for enum that inherits from str";
49 homepage = "https://github.com/irgeek/StrEnum";
50 changelog = "https://github.com/irgeek/StrEnum/releases/tag/v${version}";
51 license = with licenses; [ mit ];
52 maintainers = with maintainers; [ fab ];