summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rpmfile/default.nix
blob: 231af0c3c4eccf1b942f4df021e832f753a7c331 (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,
  setuptools-scm,
}:
buildPythonPackage rec {
  pname = "rpmfile";
  version = "2.1.0";
  format = "setuptools";

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

  # Tests access the internet
  doCheck = false;

  nativeBuildInputs = [ setuptools-scm ];

  pythonImportsCheck = [ "rpmfile" ];

  meta = {
    description = "Read rpm archive files";
    mainProgram = "rpmfile";
    homepage = "https://github.com/srossross/rpmfile";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}