python.pkgs.btrfs: 11 -> 12

and switch to fetchFromGithub as it's not published on pypi
This commit is contained in:
Evils 2021-04-17 23:09:59 +02:00
parent 1fe6ed37fd
commit 0e431818ca

View File

@ -1,17 +1,23 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "btrfs"; pname = "btrfs";
version = "11"; version = "12";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "knorrie";
sha256 = "1w92sj47wy53ygz725xr613k32pk5khi0g9lrpp6img871241hrx"; repo = "python-btrfs";
rev = "v${version}";
sha256 = "sha256-ZQSp+pbHABgBTrCwC2YsUUXAf/StP4ny7MEhBgCRqgE=";
}; };
# no tests (in v12)
doCheck = false;
pythonImportsCheck = [ "btrfs" ];
meta = with lib; { meta = with lib; {
description = "Inspect btrfs filesystems"; description = "Inspect btrfs filesystems";
homepage = "https://github.com/knorrie/python-btrfs"; homepage = "https://github.com/knorrie/python-btrfs";