summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/atomicwrites/default.nix
blob: a8f302f0f3ac460efaa34beda4fd2fc6c7444ab9 (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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pytest,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "atomicwrites";
  version = "1.4.1";
  pyproject = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-gbLJBxpJNnp/dwFw5e7Iy2ZWfPu8jHPSDOXKSo1xzxE=";
  };

  build-system = [ setuptools ];

  # Tests depend on pytest but atomicwrites is a dependency of pytest
  doCheck = false;
  nativeCheckInputs = [ pytest ];

  meta = {
    description = "Atomic file writes on POSIX";
    homepage = "https://pypi.org/project/atomicwrites/";
    maintainers = with lib.maintainers; [ matthiasbeyer ];
    license = lib.licenses.mit;
  };
})