10 buildPythonPackage rec {
15 disabled = pythonOlder "3.7";
17 src = fetchFromGitHub {
20 rev = "refs/tags/v${version}";
21 hash = "sha256-LrDLIWiV/zIbl7CwKh7DAy4LoLyY7+hfUu8nqduclnA=";
25 # Replace SafeConfigParser and readfp, https://github.com/milanmeu/aioaseko/pull/6
27 name = "replace-safeconfigparser.patch";
28 url = "https://github.com/irgeek/StrEnum/commit/896bef1b7e4a50c8b53d90c8d2fb5c0164f08ecd.patch";
29 hash = "sha256-dmmEzhy17huclo1wOubpBUDc2L7vqEU5b/6a5loM47A=";
34 substituteInPlace setup.py \
35 --replace '"pytest-runner"' ""
36 substituteInPlace pytest.ini \
37 --replace " --cov=strenum --cov-report term-missing --black --pylint" ""
48 pythonImportsCheck = [
53 description = "Module for enum that inherits from str";
54 homepage = "https://github.com/irgeek/StrEnum";
55 changelog = "https://github.com/irgeek/StrEnum/releases/tag/v${version}";
56 license = with licenses; [ mit ];
57 maintainers = with maintainers; [ fab ];