summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/mslex/default.nix
blob: e9cd5d10bda79ca8c0b89980b01032f11caa5e51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytest,
}:

buildPythonPackage rec {
  pname = "mslex";
  version = "1.3.0";
  pyproject = true; # fallback to setup.py if pyproject.toml is not present

  src = fetchFromGitHub {
    owner = "smoofra";
    repo = "mslex";
    tag = "v${version}";
    hash = "sha256-vr36OTCTJFZRXlkeGgN4UOlH+6uAkMvqTEO9qL8X98w=";
  };

  build-system = [
    setuptools
  ];

  pythonImportsCheck = [
    "mslex"
  ];

  nativeCheckInputs = [
    pytest
  ];

  meta = {
    description = "Like shlex, but for windows";
    homepage = "https://github.com/smoofra/mslex";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ yzx9 ];
  };
}