9 buildPythonPackage rec {
10 pname = "more-properties";
13 # upstream requires >= 3.6 but only 3.7 includes dataclasses
14 disabled = pythonOlder "3.7";
16 format = "setuptools";
18 src = fetchFromGitHub {
20 repo = "python-more-properties";
22 hash = "sha256-dKG97rw5IG19m7u3ZDBM2yGScL5cFaKBvGZxPVJaUTE=";
26 mv pypi_upload/setup.py .
27 substituteInPlace setup.py \
28 --replace "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]"
30 # dataclasses is included in Python 3.7
31 substituteInPlace requirements.txt \
32 --replace dataclasses ""
35 nativeCheckInputs = [ pytestCheckHook ];
37 pythonImportsCheck = [ "more_properties" ];
40 description = "Collection of property variants";
41 homepage = "https://github.com/madman-bob/python-more-properties";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ dotlambda ];