1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytest, 7}: 8 9buildPythonPackage rec { 10 pname = "mslex"; 11 version = "1.3.0"; 12 pyproject = true; # fallback to setup.py if pyproject.toml is not present 13 14 src = fetchFromGitHub { 15 owner = "smoofra"; 16 repo = "mslex"; 17 tag = "v${version}"; 18 hash = "sha256-vr36OTCTJFZRXlkeGgN4UOlH+6uAkMvqTEO9qL8X98w="; 19 }; 20 21 build-system = [ 22 setuptools 23 ]; 24 25 pythonImportsCheck = [ 26 "mslex" 27 ]; 28 29 nativeCheckInputs = [ 30 pytest 31 ]; 32 33 meta = { 34 description = "Like shlex, but for windows"; 35 homepage = "https://github.com/smoofra/mslex"; 36 license = lib.licenses.asl20; 37 maintainers = with lib.maintainers; [ yzx9 ]; 38 }; 39}