about summary refs log tree commit diff
path: root/pkgs/development/python-modules/oschmod/default.nix
blob: 8ce9b703c6b2239b55ff80059b51e78dc1d83ab9 (plain) (blame)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "oschmod";
  version = "0.3.12";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-vsmSFvMWFe5lOypch8rPtOS2GEwOn3HaGGMA2srpdPM=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "oschmod" ];

  meta = {
    description = "Change file permissions on Windows, macOS, and Linux";
    homepage = "https://github.com/yakdriver/oschmod";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ gordon-bp ];
  };
}