My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/strenum/default.nix

43 lines
894 B

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "strenum";
version = "0.4.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "irgeek";
repo = "StrEnum";
rev = "v${version}";
hash = "sha256-ktsPROIv/BbPinZfrBknI4c/WwRYGhWgmw209Hfg8EQ=";
};
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
substituteInPlace pytest.ini \
--replace " --cov=strenum --cov-report term-missing --black --pylint" ""
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"strenum"
];
meta = with lib; {
description = "MOdule for enum that inherits from str";
homepage = "https://github.com/irgeek/StrEnum";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}